Created
July 16, 2015 23:50
-
-
Save floer32/5a58019d14175aa51795 to your computer and use it in GitHub Desktop.
print system properties in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Properties p = System.getProperties(); | |
Enumeration keys = p.keys(); | |
while (keys.hasMoreElements()) { | |
String key = (String)keys.nextElement(); | |
String value = (String)p.get(key); | |
System.out.println(key + ": " + value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment