title: Use two classes in the same java file
body: <p>I have file <strong><em>TestClass.java</em></strong></p>
  
  <pre><code>package com.fido.android.sample.dsm.SoftPin.Core;
  
  public class TestClass
  {
     public int mValue1;
     public String mValue2;
  }
  </code></pre>
  
  <p>Now in this file (<strong><em>TestClass.java</em></strong>) I want to declare one more class, but when I write for example:</p>
  
  <pre><code>public class SecondClass
  {
      // Class members goes here.
  }
  </code></pre>
  
  <p>Compiler do not allow me to do that, if I remove <code>public</code>  everything is Okay, but I can use <code>SecondClass</code> only in the <strong><em>TestClass.java</em></strong>, I can't write </p>
  
  <pre><code>SecondClass sc = new SecondClass();
  </code></pre>
  
  <p>out of <strong><em>TestClass.java</em></strong> class. Now I want to know if there is a way to do such thing, to have two classes in the same file and to use them from everywhere (not inner classes). </p>