public class ThrowDemo { static void aMethod(int a1, int a2) { try { if (a2 == 0) { // throw new ArithmeticException("除數不為0"); 如果沒有 ...
確定! 回上一頁