News

This works because the two are closely related. In Java, nested classes are categorized as either static member classes or inner classes. Inner classes are non-static member classes, local classes ...
the code must be located in a class that belongs to the same package (discussed later in the Java 101 series) as the class containing the member that is to be accessed.