KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ArrayNewInit


1 public class ArrayNewInit {
2
3     public static void main(String JavaDoc [] args) {
4     
5         int [] a = new int[3];
6         int [] b [] = new int [4][5];
7
8         int [][] c = new int[3][];
9
10         int [] e = new int [] { 1,2, 3,4};
11         int f [][] = new int[][]{{1,2},{3,4},{5,6}};
12
13         int g [][] = new int [][]{new int[3], new int[4]};
14     }
15 }
16
Popular Tags