Question: Write a complete* Java program that performs the following steps: Ask the user to type in a six-letter word and use a Scanner to read
Write a complete* Java program that performs the following steps: Ask the user to type in a six-letter word and use a Scanner to read their input from the keyboard. We havent yet discussed the tools to ensure the user does this correctly, so for now you can assume that the user will correctly type in a six-letter word when using your program. Echo the users word back to the screen. Use the substring() methods to divide their word up into two, three-letter words. Use the concatenation operation (+) to put those two smaller words in reversed back together into a single six-letter word. Print this new six-letter word back to the screen. For example, if the user types in the word TEACUP, your program should change this word around to become CUPTEA instead.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
