subject

Write a recursive method that displays an int value reversely on the console using the following header:
public static void reverseDisplay(int value)

Note: the recursive method will print the last digit (extracted with value % 10) and will call itself with integer new_value=value/10.
For example, reverseDisplay(12345) displays 54321.
Write a test program that prompts the user to enter an integer and displays its reversal.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 16:00
Answer me pls is an algorithm that has been coded into something that can be run by a machine.
Answers: 3
question
Computers and Technology, 21.06.2019 20:20
Sometimes writers elaborate on the truth when recalling past events so they can enhance their narrative essay with more interesting descriptions. do you feel that published writers should or should not embellish real life events just to make their stories more interesting?
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
You know the right answer?
Write a recursive method that displays an int value reversely on the console using the following hea...
Questions
question
Biology, 18.11.2020 01:00
question
History, 18.11.2020 01:00
question
Mathematics, 18.11.2020 01:00
question
Chemistry, 18.11.2020 01:00
Questions on the website: 13722363