brew install jdk 13 code example
Example 1: brew install jdk 8
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
Example 2: jdk 15 download brew
$ brew cask install oracle-jdk
Example 3: brew install java 13 mac
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"