Answers for "How to Convert a striing into a char Array"

27

java string to char array

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

char array to string

char arr[ ] = "This is a test";

string str(arr);


//  You can also assign directly to a string.
str = "This is another string";

// or
str = arr;
Posted by: Guest on June-26-2021

Code answers related to "How to Convert a striing into a char Array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language