title: min(a,b) and max(a,b) equivalent in Java?
body: <p>In <code>C</code>, there is a <code>min()</code> convenience macro that helps make the code more readable. </p>
  
  <p>In java, the shortest equivalent I know of is:</p>
  
  <pre><code>(a &gt; b ? b : a)
  </code></pre>
  
  <p>But it's not as self-documenting as <code>min()</code> in my view.</p>
  
  <p>Is there a built-in min() method in Java (and I just couldn't find it)? or my only recourse is to define a method like this myself? </p>