fork(2) download
  1. import java.util.Map;
  2.  
  3. class Ideone {
  4. public static void main (String[] args) {
  5. Map<String, String> env = System.getenv();
  6. for (String envName : env.keySet()) {
  7. System.out.format("%s=%s%n", envName, env.get(envName));
  8. }
  9. }
  10. }
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
PWD=/home/PdbGB0
HOME=/home/PdbGB0
TMPDIR=/tmp/1HasiT
SHLVL=1
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt
PATH=/usr/local/bin:/usr/bin:/bin
_=/opt/java/bin/java
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat
LANG=en_US.UTF-8