public class s086 { public static void main(String[] args)
{
for( Object obj: get() ){System.out.println(obj+"..");}
}
public static Collection get(){
Collection sorted = new LinkedList();
sorted.add("B");
sorted.add("C");
sorted.add("A");
return sorted;
}
}
{
for( Object obj: get() ){System.out.println(obj+"..");}
}
public static Collection get(){
Collection sorted = new LinkedList();
sorted.add("B");
sorted.add("C");
sorted.add("A");
return sorted;
}
}
B..
C..
A..
public static void main(String[] args) {
for (Object obj : get()) {
System.out.println(obj + "..");
}
} public static Collection get() {
Collection sorted = new TreeSet();
sorted.add("B");
sorted.add("C");
sorted.add("A");
return sorted;
}