gat environment variables java

Java
String environmentVariable = System.getEnv("environment_variable_name"); 
//You can create environment variables on your computer manually
//and then you must put the environment variable in the parantheses as a String
Source

Also in Java: