If i have a large string of numbers, is there a way to convert that into an int array? id rather not have to manually code every entry to the array…
small scale example:
String s ="12345";
int[] ints = new int[500];
how can i end up with:
ints[0] = 1;
ints[1] = 2;
ints[2] = 3;
ints[3] = 4;
ints[4] = 5;
without manually doing that?
1 Answer