Answers for "conver a java string to char"

0

java convert a string to char

String string =  "ABCDEF" ;
 
char[] charsFromString = string.toCharArray(); // { 'A', 'B', 'C', 'D', 'E', 'F' }
Posted by: Guest on January-01-1970
0

how to convert a string to char in java

String s = "a";
char c = s.charAt("0");
Posted by: Guest on June-05-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language