标题: 字符串String类中构造方法 [打印本页] 作者: 范玉 时间: 2015-7-17 21:29 标题: 字符串String类中构造方法 构造方法:
A:String s = new String();
B:String s = new String(byte[] bys);
C:String s = new String(byte[] bys,int index,int length);
D:String s = new String(char[] chs);
E:String s = new String(char[] chs,int index,int length);
F:String s = new String(String str);
G:String s = "hello";