To find out, I would go through the source of the method and trace the execution. TreeSet#add(...) calls TreeMap#put(...) on a TreeMap constructed with the supplied comparator, and that comparator is used in put(...)
luck, db
There are no new questions, but there may be new answers.
shriram iyer
Ranch Hand
Joined: Dec 10, 2003
Posts: 43
posted
0
Darryl Burke wrote:To find out, I would go through the source of the method and trace the execution. TreeSet#add(...) calls TreeMap#put(...) on a TreeMap constructed with the supplied comparator, and that comparator is used in put(...)
do you mean following method
i have doubt in above method.what t.left ,t.right means