KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test92


1 public class Test92 {
2     public static void main(String JavaDoc [] args){
3         Test92 t92 = new Test92();
4         int j = (new Integer JavaDoc(8)).intValue();
5         t92.run(j);
6     }
7
8     public void run(final int x){
9         
10         new Object JavaDoc() {
11             int y = x * 7;
12             public void run(){
13                 System.out.println(y);
14             }
15         }.run();
16     }
17 }
18
Popular Tags