subject

Write a method that accepts a string object as an argument and displays its contents backward. for instance, if the string argument is "gravity" the method should display "ytivarg". demonstrate the method in a program that asks the user to input a string and then prints out the result of passing the string into the method.
below is a start on the code
package chapter8;
import java. util. scanner ;
/**
* your name
* chapter 8
* programming challenge 1
* provide a short description
*/
public class backwardstring{
public static void main(string[] args) {
string input; // to hold input
// create a scanner object for keyboard input.
// get input
// call the method below to display the string backwards.
}
/**
* the backward method accepts a string as an argument, and displays it
*backwards.
*/
public static void backward(string str) {
//for loop to reverse the string and print it
for ( ){
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
You receive an email from an impressive-sounding stranger, professor alexander rothschild renard iii, president of the american institute for scientific political statesmen. he urges you to vote for his presidential candidate choice. this social media red flag is known as
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
You know the right answer?
Write a method that accepts a string object as an argument and displays its contents backward. for i...
Questions
question
Health, 17.07.2019 08:00
question
Computers and Technology, 17.07.2019 08:00
Questions on the website: 13722363