java splits a string into an array of sub strings code example
Example 1: split every character in string into array java
String s="abcd";
char[] a=s.toCharArray();
Example 2: split string into array java
String[] array = values.split("\\|", -1);