Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //QUESTION 1
- // A List keeps things stored by an index, while a Set stores things by either hash codes or a tree structure or however the program wants to do so.
- //QUESTION 2
- // One may either retrieve an array or iterator that will allow you to loop through them as normal.
- //QUESTION 3
- // One would cast them to an Integer before using s.add(Integer).
- //QUESTION 4
- // HashSet and TreeSet
- //QUESTION 5
- s.iterator();
- //QUESTION 6
- // hasNext(), next(), remove()
- //QUESTION 7
- // A Set object has built-in algorithms that make them faster.
- //QUESTION 8
- // isEmpty(), size() == 0, or clear()
- //QUESTION 9
- // 6
- //QUESTION 10
- s.removeAll(s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement