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);
}
}
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);
}
}