When executing integer divisions by zero, it won't throw DivisionByZeroException correctly. Instead, the program will stall. Trying to catch this exception also won't work. A workaround is to manually check the divisor, and if it is zero, throw the exception out manually. But I think it should be a minor effort fixing the code.
When executing integer divisions by zero, it won't throw DivisionByZeroException correctly. Instead, the program will stall. Trying to catch this exception also won't work. A workaround is to manually check the divisor, and if it is zero, throw the exception out manually. But I think it should be a minor effort fixing the code.