16 lines
473 B
Java
16 lines
473 B
Java
// collections/EnvironmentVariables.java
|
|
// (c)2020 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://OnJava8.com for more book information.
|
|
// {VisuallyInspectOutput}
|
|
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());
|
|
}
|
|
}
|
|
}
|