Pendahuluan
import java.util.Iterator;
import java.util.Map;
public class GetSystemEnvDemo {
public static void main(String[] args) {
Map<String, String> envMap = System.getenv();
Iterator<String> iterator = envMap.keySet().iterator();
while (iterator.hasNext()) {
String iteratorKey = iterator.next();
System.out.println(iteratorKey + " : " + envMap.get(iteratorKey));
}
}
}
0 comments:
Post a Comment