Java -String zu Char -Array
String str = "example";
char[] ch = str.toCharArray();
Pable Sorren
String str = "example";
char[] ch = str.toCharArray();
var str = "HELLO";
var charArray = str.ToCharArray();
var strNew = new string(charArray);
// Convert char array to String in Java
class Util
{
public static void main(String[] args)
{
char[] chars = {'T', 'e', 'c', 'h', 'i', 'e', ' ',
'D', 'e', 'l', 'i', 'g', 'h', 't'};
String string = new String(chars);
System.out.println(string);
}
}