CreateTwoArray

public class CreateTwoArray{
   public static void main(String []args){
   int[][]arr=new int [2][3];
   System.out.println("数组arr的初始化后:");
   System.out.println("数组arr.length为"+arr.length);
   
   for(int i=0;i<2;i++){
     for(int j=0;j<3;j++){
     arr[i][j]=i+j;
     System.out.println("arr["+i+"]["+j+"]="+arr[i][j]+""); 
    }  
    System.out.println();
   }
   }

}

posted @ 2014-09-14 15:46  fantasy12436109  阅读(96)  评论(0编辑  收藏  举报