<awangdev>7. Reverse Integer_2.java
public int reverse(int x) {
        long rst = 0;
        while (x != 0) {
            rst = rst * 10 + x % 10;
            x /= 10;
            if (rst > Integer.MAX_VALUE || rst < Integer.MIN_VALUE) return 0;
        }
        return (int) rst;
    }
public int sample_funcname ( int var_0 ) {
  long var_2 = 0 ;
  while ( var_0 != 0 ) {
    var_2 = var_2 * 10 + var_0 % 10 ;
    var_0 /= 10 ;
    if ( var_2 > Integer . MAX_VALUE || var_2 < Integer . MIN_VALUE ) return 0 ;
  }
  return ( int ) var_2 ;
}
