java help 2

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!
Comments
9
if its another easy problem why wont you solve it by yourself?
This will output all properties, just pick the ones you need.

Properties p = System.getProperties();
for(Object o : p.keySet()){
System.out.println(o + " => " + p.get(o));
}
Parent
System.out.println ( "Info: " + getProperty(argument) );


?: D
I LOVE THE WAY SHE MOOOVES AND THE WAY SHE´S COMMIIIIIIIING I WANNA ROCK HER BODYYYYYYYYY I KNOW SHES WAITIN FOR MEEEEEEEE
System.out.print( "Whateversomerandomstring"+getProperty(TheThingYouWantTheGetterToWorkOn)

:DDD
dunno which properties u want to see, but for visual output u can use Swing or Awt classes.
Back to top