软件工程课堂三

因为之前的一位数组还没有搞懂,导致二维数组也不会,加上之前的东西都忘了,现在只能从最基础的建立数组开始

 1 package 数组4;
 2 
 3 public class Shuzu {
 4 
 5     public static void main(String[] args) {
 6         int a[][]= new int[3][4];
 7         for(int i=0;i<a.length;i++) 
 8         {
 9             for(int j=0;j<4;j++)
10             {
11                 System.out.print(a[i][j]+" ");
12             }
13             System.out.println();
14         }
15             
16         
17     }
18         // TODO 自动生成的方法存根
19 
20     
21 
22 }
原文地址:https://www.cnblogs.com/dinghaisheng/p/10613216.html