- 博客(3)
- 收藏
- 关注
原创 读取properties配置文件
public class PropertiesValue { public static String getValue(String filePath, String key){ Properties props = new Properties(); try { InputStr...
2018-07-27 14:30:55
131
原创 单例模式
public class Singleton { //懒汉式//静态变量在内存中只有一份private static Singleton singleton;//私有化构造方法 ,将别的类创建对象的权利收回private Singleton() {}//利用本类的static方法内创建对象public static Singleton method() {//利用静态变量的唯一性,记录实例对象的
2017-10-18 15:46:22
114
原创 StringBuffer
添加 append 删除 delete 翻转 reverse 插入 insert 支持链式编程 public static void main(String[] args) { StringBuffer buffer = new StringBuffer("abc"); System.out.println(buffer);
2017-10-17 13:59:07
135
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人