KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > InnerClass


1 /* InnerClass.java */
2
3 /** Test class with a public inner class. */
4
5 public class InnerClass implements org.quilt.cl.RunTest {
6
7     public class Inner implements MyListener {
8         public Inner() { }
9         public void setValue( String JavaDoc s ) { }
10     }
11
12     public void doSomething( MyListener listener ) {
13         listener.setValue( "3" );
14     }
15
16     public int runTest(int x) {
17         doSomething( new Inner() );
18         return x*x;
19     }
20
21 }
22
Popular Tags