Check out example codes for "split every character in string into array java". It will help you in understanding the concepts better.

Code Example 1

String s="abcd";
char[] a=s.toCharArray();

Learn ReactJs, React Native from akashmittal.com