title: Find largest number in a double array
body: <p>I have a double array like this. </p>
  
  <pre><code>  double[] arr={1.5,10.9,8.9,6.5,10.0};
  </code></pre>
  
  <p>How can I want to find out the largest number amoung those array elements</p>
  
  <p>I already have the basic logic </p>
  
  <pre><code>    public double getLargest(double[] arrray)
      {
          double largest = arrray[0];
          for (int i = 1; i &lt; arrray.Length;i++ )
          {
              if (arrray[i] &gt; largest)
                  largest = arrray[i];
          }
          return largest;
      }
  </code></pre>
  
  <p>I asked for a method like Math.max(); but Math.max() is not getting even I import System.Linq;  (It may be due to the reason that I am using framework 2.0)</p>
  
  <p>Any way I did this method.</p>