java split by character into array code example
Example 1: split every character in string into array java
String s="abcd";
char[] a=s.toCharArray();
Example 2: split string by index java
String s ="123456789abcdefgh";
String sub = s.substring(0, 10);
String remainder = s.substring(10);