- 博客(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
154
原创 单例模式
public class Singleton { //懒汉式//静态变量在内存中只有一份private static Singleton singleton;//私有化构造方法 ,将别的类创建对象的权利收回private Singleton() {}//利用本类的static方法内创建对象public static Singleton method() {//利用静态变量的唯一性,记录实例对象的
2017-10-18 15:46:22
136
原创 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
164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅