brew install java macos code example
Example 1: install java runtime mac brew
$ brew cask install java
Example 2: brew install java 13 mac
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew cask install java
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"