Create static inner class inside a class - Java Object Oriented Design

Java examples for Object Oriented Design:Inner Class

Description

Create static inner class inside a class

Demo Code

class Problem {// ww  w  . jav a2 s  .c om
    static String s;

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

Related Tutorials