// 存储到本地配置文件
    public static void main1(String[] args) throws IOException {
    Properties pro=new Properties();
    // 设置键值对数据
    pro.setProperty(“username”,”xiaoqiang”);
    pro.setProperty(“age”,”15”);
    pro.setProperty(“gender”,”female”);
    // 存储到本地文件 第一个参数可以传字节/字符输出流 第二个参数传入描述信息字符串
    pro.store(new FileWriter(“my.properties”),”this is a description”);