package demo04;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
public class demo {
public static void main(String[] args) throws IOException {
Properties properties =new Properties();
FileInputStream fileInputStream= new FileInputStream("JDBC.properties");
properties.load(fileInputStream);
String name=properties.getProperty("username");
String passwordd=properties.getProperty("password");
System.out.println(name);
System.out.println(passwordd);
properties.setProperty("url", "baidu.com");
}
}