public class Test2 {
public static void main(String[] args) {
int[] arr1=new int[3];
System.out.println(arr1[0]);
System.out.println(arr1[1]);
System.out.println(arr1[2]);
System.out.println("========");
arr1[0]=6;
arr1[1]=6;
arr1[2]=6;
System.out.println(arr1[0]);
System.out.println(arr1[1]);
System.out.println(arr1[2]);
}
}
|
|