Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
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;

...