SDKMan

command What does it do?
$ sdk list java List all availble java versions to install
$ sdk install java <version> Install a specific java version
$ sdk use java <version> Select java version for the current running shell
$ sdk default java <version> Select the global java version
$ sdk current java Show the current selected java version