Create inner class inside a class - Java Object Oriented Design

Java examples for Object Oriented Design:Inner Class

Description

Create inner class inside a class

Demo Code

public class ProblemSolved {
    String s;//from   w  ww. jav  a 2s .c o  m

    class Inner {
        void testMethod() {
            s = "Set from Inner";
        }
    }
}

Related Tutorials