Created
February 7, 2016 12:20
-
-
Save baluragala/fedb6a5705a8251a1825 to your computer and use it in GitHub Desktop.
Print all environment variables using Java program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
enviorntmentVars.entrySet().forEach(System.out::println); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment