Smart Java Method.
This post explains how to use toString and equal method ,so if you aleady know it ,breakOut and if not continue;
Java programmers write different methods which varies based on their specific target , toString and equals method are the two methods mostly used in java classes
What is toString method ?
A method that is meant for proper determination of object states , which return the state in string form , which are called whenever a reference to an object is passed as arguments to print(ln,f) methods.
1. Using toString methods