摘要:
在讲单例模式之前,我想先试讲一个例子,在什么程序中,我们都需要读取property配置文件,通过Java去解析这个文件,拿出我们想要的数值,所以我们很快很快就可以写出下面一个类去读取文件:public class LoadProperty { private String name; public LoadProperty() { read(); } public void read() { Properties property = new Properties(); InputStream input = n... 阅读全文
posted @ 2013-10-30 16:45
Ray_xujianguo
阅读(3963)
评论(4)
推荐(1)
浙公网安备 33010602011771号