Reading System Environment With JAVA
Map sysEnv = System.getenv();
for (String key : sysEnv.keySet()) {
System.out.println(key +" => "+ sysEnv.get(key));
}
System.getenv(); will return java.util.Map of system environment, which will be easy to iterate as other Map in Java. will be the generic representation of Map
No comments:
Post a Comment