should be declared as a file name
<p>My teacher is away for 2 days and I'm stuck</p>

<p>I keep getting these 2 errors when I try to run the main file</p>

<blockquote>
  <p>U:\Computer science\AP Computer
  Science\10.boolean\lab10_boolean\PassRunner.java:8: error: class
  Lab10a is public, should be declared in a file named Lab10a.java</p>
</blockquote>

<p>and</p>

<blockquote>
  <p>U:\Computer science\AP Computer
  Science\10.boolean\lab10_boolean\PassRunner.java:12: error:
  constructor PasswordCheck in class PasswordCheck cannot be applied to
  given types;</p>
</blockquote>

<p>the code in my main file is</p>

<pre><code>import static java.lang.System.*;

public class Lab10a
{
    public static void main( String args[] )
    {
        PasswordCheck test = new PasswordCheck();
        test.check();
    }
}
</code></pre>

<p>and is named PassRunner.java</p>

<p>the code in my other class file is</p>

<pre><code>import java.util.Scanner;
import static java.lang.System.*;

class PasswordCheck
{
    private String password = "mchammergohammer";

    public PasswordCheck(String word)
    {
        word = "";
    }

    public void check()
    {
        Scanner keyboard = new Scanner(System.in);
        int x = 0;
        String tmpPas = "";

        do{
            out.println("THIS LEVEL OF SECURITY REQURES A PASSWORD");
            tmpPas = keyboard.next();
            if( tmpPas == password )
                out.println("ACCESS GRANTED");
            else
                x++;
                out.println("ACCESS DENIED");
        }while( tmpPas != password || x &lt;= 10);
        if( x &gt;= 10);
            out.println( "YOU HAVE REACHED THE MINIMUM AMOUNT OF ATTEMPTS");

    }

    public void setPass()
    {
        out.println("Enter your current password: ");
    }
}
</code></pre>

<p>and it is named PassWordCheck.java</p>

<p>Ive looked at other codes and I still dont understand, as i am still new to coding, can someon please help</p>