Java: reference outer class in nested static class [duplicate]
问题 This question already has answers here : Java inner class and static nested class (26 answers) Closed 4 years ago . I have a class structure like this: public class OuterClass { private static class InnerClass { public void someMethod() { OtherClass.otherMethod(<???>); } } which refers to a static method of some other class OtherClass : public class OtherClass { public static void otherMethod(OuterClass) { .... } } I am trying to figure out what to put in place of the <???> . How do I refer