DONE编译不通过:字符数组转化为字符串
public class String {
public static void main(String[] args){
char[] h={'h','e','l','l','o'};
String a=new String(h);
}
}
我在别处看到
public class String {
public static void main(String[] args){
char data[] = {'a', 'b', 'c'};
String str = new String(data);
}
}
但在eclipse上都运行出错~~
[此贴子已经被作者于2007-10-1 11:32:59编辑过]