New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to change a string to an array of chars?
2 Answers
+ 4
There is a method called toCharArray().
For example
String a = "hello";
char[] ar = a. toCharArray();
0
by char array