多选题
Given:
1. import java.util.*;
2. public class Piles {
3. public static void main (String[] args) {
4. TreeMap<String, String> tm = new TreeMap<String, String>();
5. TreeSet<String> ts = new TreeSet<String>();
6. String[] k = {"1", "b", "4", "3"};
7. String[] v = {"a", "d", "3", "b"};
8. for(int i=0; i<4; i++) {
9. tm.put (k[i], v[i]);
10. ts.add(v[i]);
11. }
12. System.out.print(tm.values() + " ");
13. Iterator it2 = ts.iterator();
14. while(it2.hasNext()) System.out.print(it2.next() + "-");
15. } }
Which of the following could be a part of the output? (Choose two.)
A. [a, b, 3, d]
B. [d, a, b, 3]
C. [3, a, b, d]
D. [a, b, d, 3]
E. [1, 3, 4,b]
F. [b, 1,3,4]
G. 3-a-b-d-
H. a-b-d-3-
I. a-d-3-b-