see environment variables code example
Example 1: show env in bash
#show all variable
printenv
#result one variable
echo $LOCALAPPDATA
Example 2: gat environment variables 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