Using Java and no arrays. Please add comments.
3. Write a method with the following header to display a positive integer in reverse order:
public static void reverse(int number)
Call this method reverse from main, after prompting the user to enter a positive integer with up to seven (7 decimal digits and then printing the int entered by the user in reverse. Should the user enter an integer with too many digits, the program should notify the user that their input was not valid and prompt them to enter a new input. Show the output of your code for the following inputs: 42, 3456789, 10000, 35753, 10201. Explain briefly how your program treats trailing 0's, such as in input 10000.