The code is unclear because of " words, so please use Code Tags [co de] [/co de]
saurabhthard aggarwal wrote:/* WHEN COMPARETO() IS CALLED FROM TREESET'S ADD() METHOD WHICH IS THE CALLING OBJECT AND WHICH IS THE CALLED OBJECT .
*/
ts1 - calling object
new Student() - called (passed) object
And as per your subject line, you asked about unable to understand compareTo(), Can you explain, What exactly you are unable to get ?