title: When to use inner classes in Java for helper classes
body: <p>If I have for example a class along with a helper class to do some of its functionality, does it make sense to make it as an inner class. </p>
  
  <pre><code>    public class Foo {
         private FooHelper helper;
  
         // constructor &amp; any other logic
  
         public void doSomeThing() {
           helper.do();
         }
      }
  
      public class FooHelper {
          public void do() {
           // code
          }
      }
  </code></pre>
  
  <p>In the above case does it make sense to make the <code>FooHelper</code> as an inner class ? Apology if this sound stupid but I am little confused about the use cases.</p>