This discussion is archived
2 Replies Latest reply: Jul 29, 2013 9:34 AM by HiraMuntaha RSS

how to sort an arralist of strings with comparable interface attached the code to be sorted

a2f5b5ab-7722-4698-b013-f7247cf37edc Newbie
Currently Being Moderated
List<String> list=new ArrayList<String>();
list.add("100");
list.add("60");
list.add("a/b");
list.add("c");
list.add("");
list.add("40");

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points