install multiple versions of java mac code example
Example 1: can i have both java7 and java 11 in mac
brew cask install java7
brew cask install java6
Example 2: can i have both java7 and java 11 in mac
brew search java
brew cask install java7
brew cask install java6
brew search java