Sort out the first error and then see what happens. Illegal start of type usually means too many {s or too few }s before that point.campbell@campbellsComputer:~/java$ javac PayRoll.java
PayRoll.java:139: error: illegal start of expression
public void actionPerformed(ActionEvent e){
^
PayRoll.java:139: error: illegal start of expression
public void actionPerformed(ActionEvent e){
^
PayRoll.java:139: error: ';' expected
public void actionPerformed(ActionEvent e){
^
PayRoll.java:139: error: ';' expected
public void actionPerformed(ActionEvent e){
^
PayRoll.java:146: error: class, interface, or enum expected
}
^
5 errors
Janet Heath wrote:I don't know why you would say there is too much code.
And I don't know what you mean by efficiency doesn't really come into the picture...
I guess the Instructor is inefficient...
Have you tried it with empty fields? I haven't. I don't have to. I have been writing code longer than you and I can see what will happen just by looking. I can also see that changing to isEmpty() will work. I can also see that your && however will not work. There is a style problem with that method. You should not writeJanet Heath wrote: . . . The isOK is checking for empty fields. If empty then fail. . . .
Don't get me started about those stupid light bulbs. |