Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Debugging Exercise 8-4 Instructions DebugEight4.java 1 // Application allows user to enter a series of words 2 // and displays them in reverse order 3
Debugging Exercise 8-4 Instructions DebugEight4.java 1 // Application allows user to enter a series of words 2 // and displays them in reverse order 3 import java.util. 4 public class DebugEight4 The files provided in the code editor to the right contain l syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly 6 public static void main(String[] args) Grading Scanner input new Scanner(System.in); int x , y; String array] new String[ 100] String entry; final String STOP XXX; StringBuffer message = new 10 Write your Java code in the area on the right. Use the Run button to compile and run the code. Clicking the Run Checks button will run pre-configured tests against your code to calculate a grade 12 13 14 15 16 17 18 19 20 21 StringBuffer("The words in reverse order are n") Once you are happy with your results, click the Submit button to record your score System.out.println(Enter any word " + "EnterSTOP when you want to stop") entry-input.next); while(!(entry.equals(STOP))) array[x]entry 23 24 25 26 27 28 29 30 31 32 System.out.println(Enter another word " "Enter "STOP when you want to stop") entry-input.next); message.append(array[y]); message.append(" "); System.out.println(message) 34
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started