KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > TestsClass


1 interface TestsInterface {
2
3     public static int staticVariable = 3;
4 }
5
6 public class TestsClass implements TestsInterface {
7
8     public static void main(String JavaDoc [] args){
9         TestsClass tc = new TestsClass();
10         tc.run();
11     }
12     
13     public void run(){
14         int x = staticVariable;
15     }
16 }
17
Popular Tags