0
JAVA - Convert a char[] into a Character[]?
Hello, what is the best way to convert a char[] or a String into a Character[] with the normal JDK (Version didn't belong)? I ask to use it e.g.
3 Respostas
+ 1
In case of an array, just iterate over it and conert its elements one by one
+ 1
Use Character.valueOf() for this purpose.
0
But I want to convert a full array to another array an not only a char to a Character.
And I know that you can create an Character[] and loop through it with a for loop an copy the values. But is this the best version?