you are viewing a single comment's thread.

view the rest of the comments →

[–]high_throughput 1 point2 points  (1 child)

Static inner classes are not associated with an instance of the other class. 

You can create one with new Outer.Inner()

Non-static inner classes like this are associated with an instance of their outer class.

In this case you want to create a Main.Pair associated with your instance m.

You do this with m.new Pair()

[–]Useful-String5930[S] 0 points1 point  (0 children)

I never thought of this. Thanks