单例模式 枚举方式
摘要:
enum Singleton { INSTANCE; public void m() { System.out.println("test"); } } 阅读全文
posted @ 2022-04-14 11:59 金满仓 阅读(23) 评论(0) 推荐(0)
posted @ 2022-04-14 11:59 金满仓 阅读(23) 评论(0) 推荐(0)
posted @ 2022-04-14 11:57 金满仓 阅读(18) 评论(0) 推荐(0)
posted @ 2022-04-14 11:55 金满仓 阅读(53) 评论(0) 推荐(0)