- 博客(2)
- 收藏
- 关注
转载 单例模式
单例模式的几种实现方式 懒汉式,线程不安全 代码: public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { if (instance == null) { instance = new Sin...
2019-11-27 19:25:06
61
转载 Java时间日期格式的转换
Java时间日期格式转换 担心自己会忘记时间格式的转换,特转发此博客 Java时间格式转换大全 import java.text.*; import java.util.Calendar; public class VeDate { /** 获取现在时间 @return 返回时间类型 yyyy-MM-dd HH:mm:ss / public static Date getNowDate() {...
2019-11-17 22:20:07
247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人