Question: Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending

Write a program that takes in a line of text as input,  

Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text. Ex: If the input is: Hello there Hey done. the output is: ereht olleg yeH 450974.1755466.qx3zqy7 LAB ACTIVITY 1 import java.util.Scanner; 2 3.19.1: LAB: Print string in reverse 3 public class LabProgram { 4 5 6 7 8 public static void main(String[] args) { /* Type your code here. */ } LabProgram.java 0/10 Load default template...

Step by Step Solution

3.42 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class ReverseText public ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!