Question

Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....

Please Use your keyboard (Don't use handwriting) Thank you..

I need new and unique answers, please. (Use your own words, don't copy and paste)

Write a Java program that:

  • Asks the user to enter his/her first name and ID.
  • Prints the user's first name and ID in reverse order with a space between them recursively.

Important notes:

  1. You should have to copy and paste the Java as your answer for this question. DON’T take screen shot for your Java Code. It must be editable.
  2. Take a screen shot for your output and paste it as a part of your answer by using your own name and ID.

Enter your first name and ID:

Maha 1400586001

Your first name and ID in reverse order:

1006850041 ahaM

The following are examples of the output:

Homework Answers

Answer #1
//ReverseStringRec.java
import java.util.Scanner;
public class ReverseStringRec {
    public static void printReverse(String s){
        if(s.length()!=0){
            printReverse(s.substring(1));
            System.out.print(s.charAt(0));
        }
    }
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("Enter your first name and ID:");
        String s = scan.nextLine();
        System.out.println("Your first name and ID in reverse order:");
        printReverse(s);
        System.out.println();
    }
}

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) CS WHAT IS Ways to iterate the elements of the collection in Java? Why can't you test a program for run-time errors when it has compiler errors ?
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) HCI 112 Questions: demonstrate the impact of computerized provider order entry systems on the clinical workflow.
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) PHC 261 Describe the term occupational epidemiology and explain the types of studies that are used in this practice. (300 words)
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) in order to support individuals in eating healthy during self-quarantine and isolation, which could positively reflect on physical and mental wellbeing, in your opinion 1. What are the guidelines for healthy eating food? 2. What are the factors contributing to poor control of food intake in humans? 500 wordsssss pleasssse
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) FIN101 Classify the following changes in each of the accounts as either an outflow or an inflow of cash. Is a decrease in land and buildings an inflow or an outflow of​ cash? Is an increase in accounts payable an inflow or an outflow of​ cash? Is a decrease in vehicles an inflow or an outflow...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) PHC 273 During COVID-19 people experienced several symptoms of mental health disorders (anxiety, depression, stress, and insomnia). Refer to the previous research studies and answer the following: Give examples of mental health disorders during the self-isolation period. Identify the groups at high risk to develop severe symptoms of mental health disease. [Hint: Use "PubMed" data base]...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) PHC 273 During COVID-19 people experienced several symptoms of mental health disorders (anxiety, depression, stress, and insomnia). Refer to the previous research studies and answer the following: Give examples of mental health disorders during the self-isolation period. Identify the groups at high risk to develop severe symptoms of mental health disease. [Hint: Use "PubMed" data base]...
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please....
Please Use your keyboard (Don't use handwriting) Thank you.. I need new and unique answers, please. (Use your own words, don't copy and paste) ***************please i need a good and perfect answer ****************** Critical Thinking 1: The diamond-water paradox In “An Inquiry into the Nature and Causes of the Wealth of Nations” published in 1776, Adam Smith wrote: “Nothing is more useful than water: but it will purchase scarcely anything… A diamond, on the contrary, has scarcely any use-value; but...
I need new and unique answers, please. (Use your own words, don't copy and paste), Please...
I need new and unique answers, please. (Use your own words, don't copy and paste), Please Use your keyboard (Don't use handwriting) Thank you.. HCI213 Q: Demonstrate how electronic claims such as EDI works during insurance processing in the healthcare system ? I need new and unique answers, please. (Use your own words, don't copy and paste),
Use yor keyboard(don’t use your handwriting) Thank you.. I need new and unique answers, please use...
Use yor keyboard(don’t use your handwriting) Thank you.. I need new and unique answers, please use your own words, (don’t copy and paste), No plagiarism Econ101 The Q Recognize how changes in supply and demand affect market outcomes and explain the effect of government regulation on prices? Use your own words and be sure to support your statements with logic and arguments.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT