📜  字符数组到字符串 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:38.809000             🧑  作者: Mango

代码示例6
// 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);
    }
}