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?
and if it gets a "1"?it puts "ob1" to cs[0]?
sorry I am kinda confused.
Thanks in advance!