If you need to retain references to both the instances of outerClass and innerClass:Note that since the code is within the class scope of outerClass, you don't need to fully qualify the name of innerClass. Pramod's code can also be written as
There are no new questions, but there may be new answers.
Well behaved women rarely make history - Eleanor Roosevelt. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop