Saturday, 31 August 2013

Custom String representation of an Object in Java

Custom String representation of an Object in Java

Is there any way to change how an object represents itself as a String?
For example, having System.out.println(new JLabel()); output Empty JLabel.

No comments:

Post a Comment