This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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?