KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > UnaryTest3


1 public class UnaryTest3 {
2     
3     //private int [] x = new int [] {2,3,4,2,3};
4
private int x = 9;
5     
6     public static void main (String JavaDoc [] args){
7         UnaryTest3 u = new UnaryTest3();
8         u.run();
9     }
10
11     public void run(){
12         Inner i = new Inner();
13         i.run();
14     }
15
16     public class Inner {
17         public void run(){
18             //int i = 0;
19
//x[i++]++;
20

21             /*int j = 0;
22             System.out.println(x[j++] += 1);
23
24             System.out.println(x[0]);*/

25             
26             
27             System.out.println(x++);
28             x--;
29             System.out.println(++x);
30         }
31     }
32 }
33
Popular Tags