if ( divisor == 0 ) { throw new Exception ("ERROR: Division by Zero"); }. In Java we use the try / catch / finally combination to handle exceptions.
確定! 回上一頁