
class Outer { class Inner{ public void m1(){ System.out.println("Inner class Method"); } } public void m2(){ Inner i = new Inner(); i.m1(); } public static void main(String ar[]){ Outer o = new Outer(); o.m2(); } }
in this i got compile time error as: cannot find symbol method m2() class Outer
please tell me, if any coding error and tell me the resolution for the above program
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
