一、字符数组to字符串
直接声明
char[] c={'a', 'b', 'c'};
String s = new String(c);
二、字符串数组to字符串
string是不可变类——利用StringBuffer
String[ ] str = {"abc", "dfe", "hij"};
StringBuffer sb = new StringBuffer();
for(int i = 0; i < str.length;i++){
sb.append(str[i]);
}
String s = sb.toString();