List all the System properties.
class SysProperties{
public static void main(String ar[]){
java.util.Properties p=System.getProperties();
java.util.Enumeration names=p.propertyNames();
while(names.hasMoreElements()){
String name=(String)names.nextElement();
String value=p.getProperty(name);
System.out.println(name+"\t=\t"+value+"\n");
}
}
}
class SysProperties{
public static void main(String ar[]){
java.util.Properties p=System.getProperties();
java.util.Enumeration names=p.propertyNames();
while(names.hasMoreElements()){
String name=(String)names.nextElement();
String value=p.getProperty(name);
System.out.println(name+"\t=\t"+value+"\n");
}
}
}
Comments