Welcome to CodeWorkout! You can edit the Java code below. The 'check my answer' button attempts to compile your Java code, and if it...
X1520: JavaErrorsDemo
Welcome to CodeWorkout! You can edit the Java code below. The 'check my answer' button attempts to compile your Java code, and if it succeeds, will run some additional tests against it to verify that it does not have errors or bugs.
The Java code below has several errors. They are mostly simple Java syntax errors, but be careful not to add a logic error when following the suggestions for fixes! Sometimes the suggestion is helpful, but keep in mind that Java does not know the intent or purpose of your code, it just executes the actions one by one.
The code below needs 6 small changes. Don't try and restructure the program, just focus on one error at a time.
Your Answer:
Feedback
Your feedback will appear here when you check your answer.