java help 2
•
10 Jan 2010, 21:08
•
Journals
heyho,
the second time i am in need of help for another (easy) java-problem:
in java.lang.System there is a method "public String getProperty(String key)" which gives you the properties of the environment where java runs on.
my task is to write a simple java-code which outputs the systemproperties of the javaversion and the pc-system-properties in some kind of chart.
thanx in advance!
the second time i am in need of help for another (easy) java-problem:
in java.lang.System there is a method "public String getProperty(String key)" which gives you the properties of the environment where java runs on.
my task is to write a simple java-code which outputs the systemproperties of the javaversion and the pc-system-properties in some kind of chart.
thanx in advance!
Properties p = System.getProperties();
for(Object o : p.keySet()){
System.out.println(o + " => " + p.get(o));
}
?: D
:DDD