I seem to be getting this error message now after i figured out why it wasnt running.Any ideas or suggestions on how to correct this?
C:\jdk1.5.0_14\bin>javac Payroll.java
Payroll.java:51: illegal start of expression
public void static main(
String[] args) {}
^
1 error
import java.util.Scanner;
public class Payroll {
public Payroll() {
{
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
// prompt for and input employee name
System.out.println( "Please enter the employee name:" );
String employeeName = input.nextLine(); // read a line of text
System.out.println(); // outputs a blank line
// prompt for and input employee hourly wage
System.out.println( "Please enter the employee hourly wage:" );
double hourlyWage = input.nextDouble(); // read a line of text
System.out.println(); // outputs a blank line
// prompt for and input employee hours worked
System.out.println( "Please enter the employee hours worked:" );
double hoursWorked = input.nextDouble(); // read a line of text
System.out.println(); // outputs a blank line
System.out.println(); // outputs a blank line
System.out.println("Employee Name: " + employeeName);
System.out.println("Hourly Wage: " + hourlyWage);
System.out.println("Hours Worked: " + hourlyWage);
}
public void static main(String[] args) {}
new Payroll();
;
} // end method main
} // end class Payroll