Answers for "java create an char array from a string"

27

java string to char array

String str = "example";
char[] ch = str.toCharArray();
Posted by: Guest on March-05-2020
13

char array to string java

char[] a = {'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'};
String str = new String(a);
Posted by: Guest on June-15-2020

Code answers related to "java create an char array from a string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language