Skip to content

Instantly share code, notes, and snippets.

@roman
Created April 21, 2009 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roman/99310 to your computer and use it in GitHub Desktop.
Save roman/99310 to your computer and use it in GitHub Desktop.
import java.util.*;
import java.security.*;
public class MyEnvironment {
public static void main (String[] args) {
Map<String, String> m = System.getenv();
for(String k : m.keySet()) {
System.out.printf("%s = %s\n", k, m.get(k));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment