アットウィキロゴ

ouchi > Practice > Enshu02-22_Calculator

  1. public class Calculator {
  2.  
  3. public static int divide(int x, int y) throws IllegalInputException {
  4. try {
  5. return x / y;
  6. } catch (ArithmeticException e) {
  7. throw new IllegalInputException(e);
  8. }
  9. }
  10. }
  11.  
最終更新:2013年05月17日 14:41