15,897,291 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
Member 13652359
28-Aug-18 14:47pm
View
After correcting it, it shows:
C:\Java 1\New folder (3)\Chapter05\Checkboard.java:76: ';' expected
{
^
addWindowListener(new WindowAdapter())
{//LOCATION OF ERROR
public void windowClosing(WindowEvent e)
{
System.ext(0);
}
});
Member 13652359
15-Aug-18 12:46pm
View
Thanks, It worked.
Member 13652359
16-Jul-18 13:37pm
View
TY Bro
Member 13652359
16-Jul-18 9:58am
View
After correctifying it I got a new error:
java:17: cannot find symbol
symbol : method printIn()
location: class java.io.PrintStream
System.out.printIn();
Member 13652359
21-Jun-18 16:55pm
View
...Such a small error.
Thanks, CPallini
Member 13652359
31-May-18 8:01am
View
The output is wrong from the code above:
The tax on $100.00 at 1,000.00% is 1000.00
The tax on $100.00 at 1,750.00% is 1750.00
When the output should be:
The tax on 100.00 at 10% is 10.00
Member 13652359
25-May-18 15:27pm
View
Thanks for replying and for your help.
Member 13652359
25-May-18 14:15pm
View
The line where the formula is put in, the following error comes up:
Error CS0266 Cannot implicitly convert type 'double' to 'float'. An explicit conversion exists (are you missing a cast?)
Member 13652359
31-Jan-18 5:42am
View
It's an Assignment question.
Show More