title: Why isn't Math.max(double a, double b) variadic?
body: <p>Why isn't the implementation of Math.max a <a href="http://en.wikipedia.org/wiki/Variadic_function" rel="noreferrer">variadic function</a>?</p>
  
  <p>It could get implemented like this:</p>
  
  <pre><code>public class Main {
      public static double max(double... values) {
          double max = Double.NEGATIVE_INFINITY;
          for (double tmp : values) {
              max = max &lt; tmp ? tmp : max;
          }
          return max;
      }
  
      public static void main(String[] args) {
          // This works fine:
          System.out.println(max(-13, 12, 1337, 9));
  
          // This doesn't work:
          // System.out.println(Math.max(-13, 12, 1337));
      }
  }
  </code></pre>
  
  <p>Is there any reason why it is not implemented like this?</p>