title: java class is not accessible through another class within the same package
body: <p>Can anyone tell me why the below code is not working,</p>
  
  <p>First file is,</p>
  
  <pre><code>   package pack;
  import pack.*;
  public class please
  {
      public static void main(String s[])
      {
          plz p=new plz(1);
      }
  }
  </code></pre>
  
  <p>Second file is,</p>
  
  <pre><code>package pack;
  public class plz
  {
      public plz(int i)
      {
  
      }
  }
  </code></pre>
  
  <p>But when i compile please.java then the error says that it cannot find 'plz()'
  Kindly guide me through.</p>