1.构造String时建立:如 char data[] = {'s', 'g', 'k'}; String str = new String(data);
2.调用String类方法 String.valueOf(char[] chr),如 char[] cha = {'s','g','h'}; String n = String.valueOf(cha);