You need to implement a program to reverse the digits.
Program: Write a method, reverseDigit, that takes an integer as a parameter and returns the number with its digits reversed. For example, the value of reverseDigit(12345) is 54321.
Write a program to test your method.
Comment the code and test your method.