title: How to call a method of a class that is inside another class?
body: <pre><code>package collections; 
  public class Construct 
    { 
      class Inner
        { 
          void inner() 
            { 
              System.out.println("inner class method "); 
            } 
        } 
      public static void main(String[] args) 
        { 
          Construct c=new Construct(); 
        } 
    } 
  </code></pre>
  
  <p>How to call a method of the inner class? How to create an object to call a method of the inner class?</p>