Properties properties = new Properties();
properties.load(new FileInputStream("src\\main\\resources\\tmp3.properties"));
Enumeration enumeration = properties.propertyNames();
while (enumeration.hasMoreElements()) {
String key = (String) enumeration.nextElement();
String value = properties.getProperty(key);
System.out.println(key);
System.out.println(value);
}
|