posted 7 years ago
Please, next time put code tags around your code block, not right in front of it. Also, don't forget to indent your code. I've fixed both for you this time, to make the code readable.
You call method m2 on an instance of class outer1 (which should start with a capital letter...), but the method is part of class inner (again, capital letter...). Move the method outside class inner so it's placed directly in class outer1, then it should work.