title: Assistance with Rainfall Java
body: <p>I have an assignment over methods that I am completely stuck on. I'm looking for general help if possible as I can't seem to understand this no matter how many times I rewatch the lesson. Thank you for your time reading and possibly helping me out! Below is the assignment and my code so far.</p>
  
  <p>"Write a RainFall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following:</p>
  
  <ul>
  <li>the total rainfall for the year</li>
  <li>the average monthly rainfall</li>
  <li>the month with the most rain</li>
  <li>the month with the least rain</li>
  </ul>
  
  <pre><code>public class RainfallClass
  {
      //constant variable
      public final int NUM_MONTHS = 12;
  
      // array for amount each month
      private double[] averageAmnt = new double[NUM_MONTHS];
  
      public double getTotal(int i )
      {
          return averageAmnt[i] * 12;
      }
  
      public double getAvg(int i)
      {
          return averageAmnt[i];
      }
  
      public double getMost(int i)
      {
          return 
      }
  }
  
  
  </code></pre>