This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi ranchers this is a code from ExamLab just edited a part to make it work.
I know that :
negative if objOne < objTwo
zero if objOne == objTwo
positive if objOne > objTwo
Here's my question:
how does the set arrange the elements?
Because as of now what I just know is:
if you compare the "1st argument to the 2nd argument" in compare method you get an natural order, or you get a duplicate
if you compare the "2nd argument to the 1st argument" in compare method you get an reverse order , or you get a duplicate
In this method does the set insert the 1st element I added comparing to the second element?