KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ArrayTests


1 public class ArrayTests {
2
3         int [][] x;
4         
5         public static void main (String JavaDoc [] args) {
6         
7             ArrayTests a = new ArrayTests();
8             a.run();
9         }
10
11         private void run () {
12             int [] i = new int [9];
13             x = new int [3][3];
14             x[0][0] = 4;
15             System.out.println(x[0][0]);
16             x[0][1] = 3;
17             System.out.println(x[0][0]);
18         }
19 }
20
Popular Tags