KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > UnaryTest


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