toString method
Description
Returns the string expression of the object. This method invokes this.getName(), and then returns the results.
Format
public String toString();
Parameters
None
Exceptions
None
Return value
This method returns the reference to the String type object that indicates the string expression of the object.