Simplify the old solution for reversing an integer.
Add a solution for reversing an integer without using String manipulation function in JDK.