「Java」java.util.Properties.list() の使い方
Javaコード
package Properties;
import java.util.Properties;
public class ProplistDemo {
public static void main(String[] args) {
Properties prop = new Properties();
// add some properties
prop.put(“City", “tokyo");
prop.put(“Name", “山田");
prop.put(“Age", “31");
// print the list with System.out
prop.list(System.out);
}
}
— listing properties —
Name=山田
City=tokyo
Age=31