Page 1 of 1

About Question enthuware.ocpjp.v8.2.1301 :

Posted: Mon Aug 01, 2016 6:36 am
by badbishop
Regarding the explanation, I would argue that it is not necessary that E must implement Comparable in order to be added to TreeSet<E>, as one can instantiate a TreeSet passing a Comparator instance as an argument.

Re: About Question enthuware.ocpjp.v8.2.1301 :

Posted: Mon Aug 01, 2016 8:30 pm
by admin
Agreed. Added to the explanation.
thank you for your feedback!

Re: About Question enthuware.ocpjp.v8.2.1301 :

Posted: Mon Aug 01, 2016 8:34 pm
by admin
FYI, I sent you a private message. Kindly check it.
Paul.