import java.util.Map; import java.lang.System; void dumpEnv() { final Map<String,String> env = System.getenv(); System.out.println("--- Environment ---"); for (String key : env.keySet()) { String val = env.get(key); System.out.println(key + "=" + val); } }
Programming Tips - Java: dump the environment variables
Date: 2012aug28
Language: Java
Q. Java: dump the environment variables
A.