随笔分类 -  Java

摘要:测试异常方法: 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 是逸仙呀 阅读(71) 评论(0) 推荐(0)
摘要:1 public class Exception { 2 3 public static void main(String[] args) { 4 System.out.println(method()); 5 } 6 7 public static int method() { 8 try { 9 阅读全文
posted @ 2021-01-25 21:31 是逸仙呀 阅读(151) 评论(1) 推荐(0)
摘要:如果你像我一样⬇️,查遍google百度,半天下来还是找不到解决方案,说不定这篇博客能帮助你顺利解决呢 好了,那么开始说说我是怎么解决麻烦的。 首先,我想打开一份java文稿。光预览,它是没有任何问题的: 但是当idea打开时,所有中文注释都是乱码: 于是我查阅资料,直到把setting中所有有关编 阅读全文
posted @ 2021-01-16 16:19 是逸仙呀 阅读(5173) 评论(0) 推荐(1)