摘要: 1、 public class ExceptionDemo1 { public static void main(String[] args) { System.out.println("1、除法计算开始:"); try { int x = 10; int y = 0; System.out.pri 阅读全文
posted @ 2020-06-24 15:25 橘子酱ing 阅读(188) 评论(0) 推荐(0)
摘要: 1、单例设计 class Singleton{ private static final Singleton SINGLETON =new Singleton(); public static Singleton getSingleton(){ return SINGLETON; } private 阅读全文
posted @ 2020-06-24 11:29 橘子酱ing 阅读(225) 评论(0) 推荐(0)