摘要: package Exception; public class Demo04 { private int age; public int getAge() { return age; } public void setAge(int age) throws AgeException{ if(age>=1&&... 阅读全文
posted @ 2019-07-22 17:13 AxeBurner 阅读(80) 评论(0) 推荐(0) 编辑
摘要: package Exception; import java.util.InputMismatchException; import java.util.Scanner; public class Demo03 { static Scanner sc = new Scanner(System.in); public static void main(String[... 阅读全文
posted @ 2019-07-22 15:57 AxeBurner 阅读(103) 评论(0) 推荐(0) 编辑