public static void score(int num) throws Exception // throws用來告知此方法有可能發生例外 { if(num > 100) { throw new Exception("Over"); }
確定! 回上一頁