Can anyone tell me why I get the following error message when I execute this code: Exception in thread "main" java.lang.NoSuchMethodError: main
public class Pay
{
private double hoursWorked = 40;
private double rateofPayPerHour = 10;
private double withholdingRate = .15;
private double grossPay;
private double netPay;
public void main(String[] args)
{
computeNetPay(hoursWorked, rateofPayPerHour, withholdingRate);
}
public void computeNetPay(double hoursWorked, double rateofPayPerHour, double withholdingRate)
{
double withHolding;
grossPay = hoursWorked * rateofPayPerHour;
withHolding = grossPay * withholdingRate;
netPay = grossPay - withHolding;
System.out.print(netPay);
}
}