对于int a[] = new int[3];下列叙述哪个是错误的?
A. a.length的值是3
B. a[1]的值是1
C. a[0]的值是0
D. a[a.length-1]的值等于a[2]的值
查看答案
float[]=new float[3];数组定义是否正确?
A. 对
B. 错
float f2[]=new float[];数组定义是否正确?
A. 对
B. 错
loat[] f1=new float[3]; 数组定义是否正确?
A. 对
B. 错
boolean[] b={"true","false","true"};数组定义是否正确?
A. 对
B. 错