posted 24 years ago
hiiiiiii alkesh
At the start i=1 and i also has an accessibility outside the do loop to0
when i++ is done i=2
at this pont b=true
so loop iterates
again i++ executes i=3
at this point b=false because b=!true
loop condition is tested at this point condition is false
loop comes out and value of i is 3 at this time so 3 is printed
regds
Mahen
hi
what is meant by ordering in the collection interfaces is it the order in which objects are added to the collection..
what is the actual use of compareTo() method
It would be good to see an code example..
list is ordered so it maintains the actual order in which elements were ordered
set doesnt maintain the order(why not....)