...
Code Block | ||
---|---|---|
| ||
int a,b,result; long temp = (long)a-(long)b; if(long < Integer.MIN_VALUE \|\| long > Integer.MAX_VALUE) throw ArithmeticException; else result = (int) temp; |
...
...
Code Block | ||
---|---|---|
| ||
int a,b,result; long temp = (long)a-(long)b; if(long < Integer.MIN_VALUE \|\| long > Integer.MAX_VALUE) throw ArithmeticException; else result = (int) temp; |
...