Question: in java i) Declare an object of Scanner, and ask user to input an 12-digits String. ii) Create a method called Reverse to reverse the
in java
i) Declare an object of Scanner, and ask user to input an 12-digits String.
ii) Create a method called "Reverse" to reverse the order of the digits for the first-four digits, middle-four digits, and last-four digits, respectively.
iii) Create a main method to verify the correction of Reverse method.
(E.g., if the input is abc defgh ijkl, the expected output will be dcba hgfe lkji)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
