KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ArrayInitTests


1 public class ArrayInitTests {
2
3     public static void main(String JavaDoc [] args) {
4         ArrayInitTests a = new ArrayInitTests();
5         a.run();
6     }
7
8     private void run() {
9     
10         int i = 0;
11
12         int [] a = {2,34,5};
13
14         int [] b = { 2,
15             3,
16             4,
17             i};
18
19         int c [] = { 2, 8};
20     }
21 }
22
Popular Tags