title: Find maximum from multiple double numbers(not an array) in Java?
body: <p>I have the following values,</p>
  
  <pre><code>    double neutrality = 0.9D;
      double happiness = 0.12D;
      double sadness = 0.232D;
      double anger = 0.001D;
      double fear = 0.43D;
  </code></pre>
  
  <p>What is the best way to find the maximum value from the above items. I know how to use if..else statements.</p>
  
  <p>Is Math.max() is the best way? like </p>
  
  <pre><code>Math.max(Math.max(Math.max(Math.max(neutrality,happiness),sadness),anger),fear)
  </code></pre>