Site icon Tutor Bin

Display the Contents that A User Enters Backwards Computer Science Task

Display the Contents that A User Enters Backwards Computer Science Task

Description

Chapter 9: Text Processing

Your goal is to display the contents that a user enters backwards.

  • Write your OWN method that accepts a String object as an argument and loops to display its contents backward. Make sure that you are writing the logic for flipping the characters instead of using a method that Java created that does it for you. For instance, if the string argument is “gravity” the method should display “ytivarg”. (6 points)
  • Demonstrate the method in a program that asks the user to input a string and then passes it to the method. (4 points)

Example Output:
gravity
ytivarg 

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version