title: How do I install Java on Mac OSX allowing version switching?
body: <p>I want to install OpenJDK Java on Mac OSX and have it work alongside other JDK's since it is a newer release.  Currently, I downloaded the tar.gz and placed it in my path but that is hard to maintain.  </p>
  
  <p>The only other install I found that do more things automatically is the install via Homebrew cask.  It looks like only the current version too:</p>
  
  <pre><code>brew cask info java
  </code></pre>
  
  <p>Shows: </p>
  
  <blockquote>
    <p>java: 13,33:5b8a42f3905b406298b72d750b6919f6<br/>
    <a href="https://openjdk.java.net/" rel="noreferrer">https://openjdk.java.net/</a></p>
  </blockquote>
  
  <p>So I can install it from there, but then what?  Am I stuck only with the new version?</p>