Click here to Skip to main content
15,897,291 members

Comments by Member 13652359 (Top 14 by date)

Member 13652359 11-Sep-18 13:19pm View    
My bad, I got 2 files of the same code.
I'll update the question now with the correct code.
Member 13652359 5-Sep-18 16:25pm View    
Yes, it is the correct path.
Member 13652359 29-Aug-18 9:25am View    
Once I do that I get the following errors:

C:\Java 1\New folder (3)\Chapter05\Employee.java:16: ')' expected
Employee(String f, String l, String p, float r, float h)
^
C:\Java 1\New folder (3)\Chapter05\Employee.java:50: ';' expected
}
^
2 errors

Tool completed with exit code 1
Member 13652359 29-Aug-18 7:47am View    
Thanks, it compiled successfully.
Member 13652359 28-Aug-18 16:18pm View    
My bad Dave.
After doing what you said I received several errors after compiling:

C:\Java 1\New folder (3)\Chapter05\Checkboard.java:12: class Checkerboard is public, should be declared in a file named Checkerboard.java
public class Checkerboard extends Frame implements ActionListener
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:19: cannot find symbol
symbol : class Field
location: class Checkerboard
Field startField = new TextField(2);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:21: cannot find symbol
symbol : class Field
location: class Checkerboard
Field stopField = new TextField(2);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:23: cannot find symbol
symbol : class Field
location: class Checkerboard
Field stepField = new TextField(2);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:35: cannot find symbol
symbol : variable lenth
location: class java.awt.TextField[]
for(int i=0; i<textArray.lenth; i++)
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:40: cannot find symbol
symbol : variable textarray
location: class Checkerboard
textarray[i].setBackground(Color.white);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:57: cannot find symbol
symbol : variable steplabel
location: class Checkerboard
inputPanel.add(steplabel);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:79: cannot find symbol
symbol : method ext(int)
location: class java.lang.System
System.ext(0);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:85: cannot find symbol
symbol : class string
location: class Checkerboard
string arg = e.getActionCommand();
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:88: cannot find symbol
symbol : variable args
location: class Checkerboard
if(args == "Go")
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:96: cannot find symbol
symbol : method setBackgorund(java.awt.Color)
location: class java.awt.TextField
textArray[i].setBackgorund(Color.blue);
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:106: cannot find symbol
symbol : variable args
location: class Checkerboard
args = "Clear";
^
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:109: cannot find symbol
symbol : variable args
location: class Checkerboard
if(args == "Clear")
^
13 errors

Tool completed with exit code 1