import java.util.*;

/**
* Display all the system properties
*
* @author abhijitgaikwad
*
*/

class DisplayAllSystemProperties {
public static void main(String[] args) {
// get all the System properties
Properties systemProperties = System.getProperties();
Enumeration keys = systemProperties.keys();
while (keys.hasMoreElements()) {
String key = (String) keys.nextElement();
String value = (String) systemProperties.get(key);
System.out.println(key + ": " + value);
}
}
}

Advertisements