How-to articles, tricks, and solutions about INNER-CLASSES

Java inner class and static nested class

In Java, an inner class is a class that is defined within another class. An inner class has access to the members (fields and methods) of the outer class, and can be used to encapsulate the implementation of a component of the outer class.