摘要: 测试异常方法: public class Main { public static void main(String[] args) { int a=2; try{ a=1/0; }catch (Exception e){ System.out.println(e.getMessage());//获 阅读全文
posted @ 2021-01-27 09:34 是逸仙呀 阅读(64) 评论(0) 推荐(0)