I have to input a string with numbers ex: 1,2,3,4,5.
That\'s a sample of the input, then I have to put that in an array of INT so I can sort it but is not working the way it
List stringList = new ArrayList(Arrays.asList(arr.split(",")));
List intList = new ArrayList();
for (String s : stringList)
intList.add(Integer.valueOf(s));