Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Print all environment variables using Java program
import java.util.Map;
import java.util.Properties;
* Created by moksha on 07/02/16.
public class JavaEnvironmentVariables {
public static void main(String args[]){
System.out.println("******************************Environment Vars*****************************");
Map<String, String> enviorntmentVars = System.getenv();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.