- package com.inetaddress;
- public class Arrayfor {
- /**
- * @param args
- */
- public static void main(String[] args) {
- int [][] a = new int[3][3];
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 3; j++) {
- System.out.print(a[i][j]+",");
- }
- }
-
- }
- }
复制代码
结果是0,0,0,0,0,0,0,0,0, |