toString method « Utility Classes « SCJP






8.3.toString method
8.3.1.The purpose of the toString() method is to provide a string representation of an object's state.
8.3.2.Override the toString() method in your classes