title: Stuck on my code due to arrays
body: <p>I have 2 different problems that I need help with in this code, the first is in convertToFah. I need to use the array in the constructor and convert each double using the formula for converting to Fahrenheit (Centigrade (the double value) * 9.0/5.0 + 32) and return it (I always get an error like can't convert from double to double[] when I try.). The second is that I have to set maxMonth/minMonth to whatever month is in the same index as the max/min value. (So if the max is 10 and it is at array[3] then the month would be April). Any help would be wonderful. (BTW I simply haven't gotten to toString yet so that isn't really a problem at the moment.)</p>
  
  <pre><code>public class Temp {
  private String [] months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
  
  public Temp (){
      double array[],avg = 0, max = 0, min = 0;
      String maxMonth= null, minMonth = null;
      }
  public double convertToFah(double array[]){
      for(int index = 0; index &lt; array.length; index++){
  
      }
  }
  public double calAvg(double avg, double array[]){
       double sum = 0.0;
  
       for(int index = 0; index &lt; array.length; index++){
                sum = sum + array[index];
       }
  
       return avg = sum /array.length;
  
  }
  public double findMin(double array[], double min, String minMonth){
      for (int index = 0; index &lt; array.length; index++) {
          if (array[index] &lt; min){
              min = array[index];
          }
      }
  
      return min;
  }
  public double findMax(double array[], double max, String maxMonth){
      for (int index = 0; index &lt; array.length; index++) {
          if (array[index] &gt; max){
              max = array[index];
              return max;
          }
      }
  
      return max;
  
  }
  </code></pre>
  
  <p>}</p>