For Java-based programs such as Maven, Jenkins, Gradle or Tomcat to run, they need to know that Java's JDK is installed. That's the purpose of the JAVA_HOME environment variable. It tells programs ...
When I first learned to program, it was grasping if statements that helped it all click into place for me. Once you can use if statements, you can build all kinds of useful and interesting tools.