KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > UnaryTest4


1 public class UnaryTest4 {
2     
3     private int [] y = new int [] {2,3,4,2,3};
4     private int x = 9;
5     
6     public static void main (String JavaDoc [] args){
7         UnaryTest4 u = new UnaryTest4();
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             y[i++]++;
20
21             int j = 0;
22             System.out.println(y[j++] += 1);
23
24             System.out.println(y[0]);
25             
26             
27             System.out.println(x++);
28             x--;
29             System.out.println(++x);
30         }
31     }
32 }
33
Popular Tags