You can use a package manager like homebrew, then ...
# sdf
s
You can use a package manager like homebrew, then just run the command
brew install openjdk@11