Presented below is a way to access outer class from inner class.



public class TestIt {
TestIt testItClass = this;

public static void main(String a[]){
new TestIt().doit();
...