News

Step 2: The constructor captures the enclosing class reference. ... MemoryLeak‘s main() method first creates a java.util.ArrayList to store EnclosingClass.EnclosedClass objects.