Lets say i currently have a character array...{1, 0, 1, 0, 1, 0, 0, 1}
How can i convert the first four elements of that character array into the first element of a string array?
This is what I'm looking for:
String[] number = new String[2];
number[0] = "1010"
or
Lets say i have a string "10101001"
how can i convert this to a string array:
number[0] = "1010"
number[1] = "1001"