+ 2
How do I split a String into chars and put those chars in a pre-declared Array?
I had problems with splitting Strings in Java with the split()-method. Is it possible to declare an Array before initializing it through the split()-method? Or ist there another solution for splitting Strings?
1 Odpowiedź
+ 7
char [] s = new char [str.length];
s = str.toCharArray();