Monday, September 18, 2006

Error 1: "identifier" expected

Type: Syntax
Screenshot: 1
Description:

In my haste while working to complete my payroll program, I managed to overlook actually naming the class to declare. I used the usual class declaration method (public class) but did not name the class afterwards. This error was detected by the java compiler when I attempted to compile and run the program.
This problem was solved by merely giving the class a name (Payroll).

No comments: