How To Install / Switch Between Multiple Java Versions Using SDKMAN

This article shows how to install Java using SDKMAN! (using its installer, or offline using your own Java binaries), and how to manage and use multiple Java versions (easily setting a Java version as default, including setting the JAVA_HOME environment variable, or switching Java versions temporarily for the current terminal session, or only for a particular directory).