OnJava8-Examples/holding/EnvironmentVariables.java

13 lines
356 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: holding/EnvironmentVariables.java
2015-05-29 14:18:51 -07:00
// <20>2015 MindView LLC: see Copyright.txt
2015-04-20 15:36:01 -07:00
import java.util.*;
public class EnvironmentVariables {
public static void main(String[] args) {
for(Map.Entry entry: System.getenv().entrySet()) {
System.out.println(entry.getKey() + ": " +
entry.getValue());
}
}
} /* (Execute to see output) *///:~