以下哪个是可以变长的数组
A. Array
B. string[]
C. string[N]
D. ArrayList
第1题:
1、以下方法中哪个可以将数组中的元素转换为字符串,并用逗号分隔()。
A.STRING(arr)
B.arr.join()
C.String(arr)
D.arr.concat()
第2题:
2、以下方法中哪个可以将数组中的元素转换为字符串且可以用自定义连接符分隔()。
A.STRING(arr)
B.arr.join()
C.String(arr)
D.arr.concat()
第3题:
以下哪个是可以变长的数组?()
A.Array
B.string[]
C.string[,]
D.ArrayList
第4题:
创建一个只能存放String的泛型ArrayList的语句是哪项?
A.ArrayList<String> al=new ArrayList<>();
B.ArrayList al=new ArrayList<>();
C.ArrayList al=new ArrayList();
D.ArrayList al=new List();
第5题:
下面定义ArrayList语句正确吗? ArrayList <String> names= new ArrayList <String>;