📅  最后修改于: 2022-03-11 14:48:38.809000             🧑  作者: Mango
// 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);
}
}