KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > STest1


1 public class STest1 {
2     
3     private int x = 9;
4     
5     public static void main(String JavaDoc [] args){
6         STest1 st1 = new STest1();
7         st1.run();
8     }
9
10     
11     public void run(){
12         System.out.println(this.x);
13         this.go();
14     }
15
16     public void go(){
17         System.out.println("going");
18     }
19 }
20
Popular Tags