@@ -0,0 +1,661 @@
+public class ReverseInteger %7B%0A    public static int reverse(int x) %7B%0A        if (x == Integer.MIN_VALUE) return 0;%0A        int sign = x %3C 0 ? -1 : 1;%0A        x = sign * x;%0A        int ret = 0, lastRet = -1, remainder = 0;%0A        while (x != 0) %7B%0A            remainder = x %25 10;%0A            lastRet = ret;%0A            ret = ret * 10 + remainder;%0A            if ((ret - remainder) / 10 != lastRet) return 0;%0A            x /= 10;%0A        %7D%0A        return ret * sign;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(reverse(123));%0A        System.out.println(reverse(-123456));%0A        System.out.println(reverse(1534236469));%0A    %7D%0A%7D

Complete Reverse Integer