Properties的使用

1、可以当作集合使用

public class PropertiesDemo {
public static void main(String[] args) {
Properties pro=new Properties();
pro.put("sunwubin", "28");
pro.put("wangfang", "18");
System.out.println(pro);
}
}

posted @ 2016-03-09 17:29  浮生若梦之梦幻天下  阅读(133)  评论(0)    收藏  举报