Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

> 1 1/ Application allows user to enter a series of words 2 // and displays them in reverse order 3 import java.util.*; 4 public

image text in transcribed
image text in transcribed
> 1 1/ Application allows user to enter a series of words 2 // and displays them in reverse order 3 import java.util.*; 4 public class DebugEight 4 5 { public static void main(String[] args) 6 7 { 8 0 Scanner input = new Scanner(System.in); int x = e, y: String array[] = new String[180]; String entry: final String STOP - XXX; StringBuffer message StringBuffer ("The words in reverse orber are "); new System.out.println("Enter any word " + + STOP + when you want to stop'); entry input.next while (!(entry.equalis (STOP)) entry 15 16 17 18 19 20 21 System.out.println("Enter any word " + "Enter + STOP + when you want to stop"); entry input.next(); while(!(entry.equals(STOP))) { array[x] entry: ++X; System.out.println("Enter another word " + "Enter + STOP + when you want to stop"); entry input.next(); } for(y =X - 1; y > 0; ++y) 1 22 23 26 I message append(array[y]); message.append(" "); System.out.println(message) > 1 1/ Application allows user to enter a series of words 2 // and displays them in reverse order 3 import java.util.*; 4 public class DebugEight 4 5 { public static void main(String[] args) 6 7 { 8 0 Scanner input = new Scanner(System.in); int x = e, y: String array[] = new String[180]; String entry: final String STOP - XXX; StringBuffer message StringBuffer ("The words in reverse orber are "); new System.out.println("Enter any word " + + STOP + when you want to stop'); entry input.next while (!(entry.equalis (STOP)) entry 15 16 17 18 19 20 21 System.out.println("Enter any word " + "Enter + STOP + when you want to stop"); entry input.next(); while(!(entry.equals(STOP))) { array[x] entry: ++X; System.out.println("Enter another word " + "Enter + STOP + when you want to stop"); entry input.next(); } for(y =X - 1; y > 0; ++y) 1 22 23 26 I message append(array[y]); message.append(" "); System.out.println(message)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago