Tuesday, April 29, 2008

How do I find the list of all system properties

You can use the following code snippet to obtain a list of all system properties:

Enumeration list = System.getProperties().propertyNames();

while(list.hasMoreElements()){
System.out.println((String) list.nextElement());
}

For more details: Java Tips

No comments: