how to turn string into charcter in java code example
Example 1: java convert a string to char[]
String string = "ABCDEF" ;
char[] charsFromString = string.toCharArray(); // { 'A', 'B', 'C', 'D', 'E', 'F' }
Example 2: how to convert a string to char in java
String s = "a";
char c = s.charAt("0");