Java语言之异常处理类
package step1;import java.util.Scanner;public class ThrowException { public static void function(String id) { //利用throws关键字声明该方法可能出现异常IllegalArgumentException /********** Begin *********/ if (id.length() == 7) { //输出ID合法时的语句System.out.print(&quo