@@ -0,0 +1,579 @@
+/**%0A * Problem Link: https://leetcode.com/problems/reverse-integer/%0A * %0A * Very tricky problem, requires checking result boundary before returning.%0A */%0A%0Apublic class Solution %7B%0A    public int reverse(int x) %7B%0A        long ret = rev(x);%0A        if(ret %3E Integer.MAX_VALUE %7C%7C ret %3C Integer.MIN_VALUE) return 0;%0A        return (int)ret;%0A    %7D%0A    %0A    private long rev(long x) %7B%0A        boolean flag = x %3C 0;%0A        x = x %3C 0 ? -x : x;%0A        long p = 0;%0A        while(x %3E 0) %7B%0A            p = p * 10 + x %25 10;%0A            x /= 10;%0A        %7D%0A        return flag ? -p : p;%0A    %7D%0A%7D%0A

Create Reverse_Integer.java