KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test46


1 public class Test46 {
2
3     public static void main(String JavaDoc [] args){
4         Test46 t46 = new Test46();
5         t46.run();
6     }
7
8     public void run(){
9         class MyClass {
10             public int x;
11             public Integer JavaDoc y = new Integer JavaDoc(9);
12             public void run(){
13                 System.out.println("x: "+x);
14             }
15         }
16         MyClass m = new MyClass();
17         System.out.println("m.x: "+m.x);
18     }
19 }
20
Popular Tags