62,614
社区成员
发帖
与我相关
我的任务
分享
public class TestArray {
public static void main(String[] args) {
int[] a = new int[10];
String[] b = new String[10];
for(int i=0;i<10;i++) {
System.out.print(a[i]+" ");
}
System.out.println();
for(int i=0;i<10;i++){
if(b[i]==null){
System.out.print(i+" ");
}
}
}
}