1.importjava.util.*;2.publicclassExample{3.publicstaticvoidmain(String[]args){4.//insertcodehere5.set.add(newinteger(2));6.set.add(newinteger(l));7.System.out.println(set);8.}9.}Whichcode,insertedatline4,guaranteesthatthisprogramwilloutput[1,2]?()
A. Setset=newTreeSet();
B. Setset=newHashSet();
C. Setset=newSortedSet();
D. Listset=newSortedList();
E. Setset=newLinkedHashSet();