多选题
Given:
1. import java.util.*;
2. public class Bucket {
3. public static void main(String[] args) {
4. Set<String> hs = new HashSet<String>();
5. Set<String> lh = new LinkedHashSet<String>();
6. Set<String> ts = new TreeSet<String>();
7. List<String> al = new ArrayList<String>();
8. String[] v = {"1", "3", "1", "2"};
9. for(int i=0; i< v.length; i++) {
10. hs.add(v[i]); lh.add(v[i]); ts.add(v[i]); al.add(v[i]);
11. }
12. Iterator it = hs.iterator();
13. while(it.hasNext()) System.out.print(it.next() + " ");
14. Iterator it2 = lh.iterator();
15. while(it2.hasNext()) System.out.print(it2.next() + " ");
16. Iterator it3 = ts.iterator();
17. while(it3.hasNext()) System.out.print(it3.next() + " ");
18. Iterator it5 = al.iterator();
19. while(itS.hasNext()) System.out.print(it5.next() + " ");
20. } }
Which statements are true? (Choose all that apply.)