KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > FieldTest2


1 public class FieldTest2 {
2
3     private int x = 9;
4     public static int SMILE = 0;
5     public String JavaDoc hi = "HI";
6     
7     public static void main(String JavaDoc [] args) {
8     
9         FieldTest2 ft = new FieldTest2();
10         ft.run();
11     }
12
13     private void run() {
14         System.out.println(hi);
15         x = 10;
16     }
17 }
18
Popular Tags