fork download
  1. import java.util.Collection;
  2. import java.util.LinkedList;
  3.  
  4. class A
  5. {
  6. public static Collection get() {
  7. Collection sorted = new LinkedList();
  8. sorted.add("B"); sorted.add("C"); sorted.add("A");
  9. return sorted;
  10. }
  11. public static void main(String[] args) {
  12. for (Object obj: get()) {
  13. System.out.print(obj + ", ");
  14. }
  15. }
  16. }
Success #stdin #stdout 0.13s 46008KB
stdin
Standard input is empty
stdout
B, C, A,