how to split a string into each individual characters in java code example Example: split every character in string into array java String s="abcd"; char[] a=s.toCharArray();