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
public static void main(String[] args) {
String N = "ABCD";
char[] array = N.toCharArray();
// and as you can see:
System.out.println(array[0]);
System.out.println(array[1]);
System.out.println(array[2]);
}