A method-local inner class is defined within a method of the enclosing class. For the inner class to be used, ofcourse, you must instantiate it and such instantiation must happen within the same method but after the class definition code. A method-local inner class can also be declared in a static method, but then it can acess only static things.
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad: