Help Finding Compiler error solution please
When I type in Javac at C prompt to this code I receive the following errors
Code:
public class PayrollExecute
{
// main method
public static void main( String args[] )
{
// Display welcome message
Payroll myPayroll = new Payroll( "Payroll " );
mypayroll.displayMessage(); // display first message
myPayroll.determineWeeklyRate(); // find weekly rate
} // end main method
} // end class
Error:
C:\>Javac Payroll.java
Payroll.java:1: class PayrollExecute is public, should be declared in a file named PayrollExecute.java
public class PayrollExecute
^
.\Payroll.java:1: class PayrollExecute is public, should be declared in a file named PayrollExecute.java
public class PayrollExecute
^
Payroll.java:13: cannot access Payroll
bad class file: .\Payroll.java
file does not contain class Payroll
Please remove or make sure it appears in the correct subdirectory of the classp
th.
Payroll myPayroll = new Payroll( "Payroll " );
^
3 errors
C:\>

