jvm install macos code example
Example 1: brew install jdk 8
brew tap adoptopenjdk/openjdk
brew cask install adoptopenjdk8
Example 2: how to install nvm in mac
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash