KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > MultiDimArrayTest


1 public class MultiDimArrayTest {
2
3     public static void main (String JavaDoc [] args) {
4    
5         int [][] intArray = new int[10][10];
6
7         for (int i = 0; i < 10; i++) {
8             for (int j = 0; j < 10; j++) {
9                 intArray[i][j] = i * j;
10                 System.out.println(intArray[i][j]);
11             }
12         }
13     }
14 }
15
Popular Tags