title: Find the max of 3 numbers in Java with different data types
body: <p>Say I have the following three constants:</p>
  
  <pre><code>final static int MY_INT1 = 25;
  final static int MY_INT2 = -10;
  final static double MY_DOUBLE1 = 15.5;
  </code></pre>
  
  <p>I want to take the three of them and use <code>Math.max()</code> to find the max of the three but if I pass in more then two values then it gives me an error. For instance:</p>
  
  <pre><code>// this gives me an error
  double maxOfNums = Math.max(MY_INT1, MY_INT2, MY_DOUBLE2);
  </code></pre>
  
  <p>Please let me know what I'm doing wrong.</p>