Tuesday, November 27, 2012

No enclosing instance of type First is accessible.

Error :  "No enclosing instance of type First is accessible. Must qualify the allocation with an enclosing instance of type First "

Solution: You cannot instantiate a non-static inner class from a static context like main.

No comments:

Post a Comment