查看 Integer.java 源码可知,抛出异常的方法代码如下: public static int parseInt(String ... 创建某个 Exception 的实例;; 用 throw 语句抛出。 下面是一个例子:
確定! 回上一頁