Can not find symbol error in java method
<p>I'm having problems with the y variable at line 20 22 24 of the code it gives the error of can not find symbol y. can some one help? Below is the code.</p>

<pre><code>import java.util.Scanner;
public class primenumbers
{
    public static void main( String args [] )
    {
        System.out.println(" Start of program ");
        Scanner input = new Scanner( System.in );
        int x;
        System.out.println(" Please enter a number ");
        x = input.nextInt();
        seePrime( x );
        System.out.println(" End of program ");
    }

    public static void seePrime( int y );
    {
        for ( int i = 2; i &lt; y ; i++ )
        {
            int b = y % i**;
            if ( b == 0 )
                System.out.println( " number is not prime " );
            else
                System.out.println( " number is prime " );
        }
    }
}
</code></pre>
