0
Difference between treeSet and hashSet..?
2 ответов
+ 3
Both are collections which implement the Set interface and dont allow duplicates. The major difference between them two is that TreeSet is an ordered collection whereas HashSet is unordered which means the order in which you add items isnt guaranteed to be maintained once you want to access them again.
0
so how can i guess the order then