Java - paycheck issue
<pre><code>import javax.swing.JOptionPane;

public class PayCheckStatic
{
    public static void main(String[] args)
    {

        while (name!=null)
    {
            String name = JOptionPane.showInputDialog("Please enter the next employees name" );
            String wage = JOptionPane.showInputDialog("Please enter their hourly wage?");
            String hoursWorked = JOptionPane.showInputDialog ("How many hours did they work this last work?");

            double wages = Double.parseDouble(wage);
            double hours = Double.parseDouble(hoursWorked);

            calculatePay(name,wages,hours);
    }
}

private static void calculatePay(String name,double wages,double hours)
{
if (hours &gt; 40)
        {
         double pay = ((wages * 40)+((hours - 40)*(1.5 * wages)));
        JOptionPane.ShowMessageDialog (null,name + "'s pay is £" + pay);
        }
    else
        {
        double pay = (wages * hours);
        JOptionPane.ShowMessageDialog (null,name + "'s pay is £" + pay);
        }
}

}
</code></pre>

<p>For some reason my code won't compile and it is coming up with cannot find symbol errors, and I can't work out why. The error is showing 3 times, with 2 of them on the message dialog boxes. Any tips as to how I can fix it?</p>
