A
Anony!
Hi
I know that a list contains duplicates and a set does not.
Whats the difference between the 3 implementations of the set interface?
They being the hashset, linkedhashset, and treeset?
What I predict:
1. Hashset: dont know.
2. LinkedHashSet: no order, elements in a linkedlist structure, and has no
duplicates.
3. Treeset: orders elements in a tree-like structure and has no duplicates.
Anyone want to complete the picture?
Thanks.
AaA
I know that a list contains duplicates and a set does not.
Whats the difference between the 3 implementations of the set interface?
They being the hashset, linkedhashset, and treeset?
What I predict:
1. Hashset: dont know.
2. LinkedHashSet: no order, elements in a linkedlist structure, and has no
duplicates.
3. Treeset: orders elements in a tree-like structure and has no duplicates.
Anyone want to complete the picture?
Thanks.
AaA