Calling the month's name : I need help to improve my code. This is just for me, I just wanna learn more. So, I had this assignment in my class about array. I finished coding and submitted already, but I really want to code is for the program to print out the name of the month like "The rainfall value of the month of January: 156.98" rather than "month 1"
here is my code:
First, I created a class without the main method. This class has a constructor, 3 methods.
    
 ```public class RainFall {
    
    private double[] rainFall;
    
    public RainFall(double [] r){
        //create an array as large as r
        rainFall = new double [r.length];
        
        //sopy the elements from r to rainFall
        for (int index = 0 ; index  < r.length ; index ++)
            rainFall[index] = r[index];
    }
    
    //total method to get the total value of rain in a year
    public double getTotal ()

    double total  = 0.0; //hold the total rain value
    
    for (int i = 0 ; i < rainFall.length ; i++)    //accumulate the rain value through out a year.
    {
        total += rainFall[i];
    }
    return total;
}
    //get the average value of the rain in a year
    public double getAverage(){
        
        return getTotal () / rainFall.length;
    
    }
    
    //get the month with the most rain
    public double getHighest ()
    {
        double highest = rainFall[0];
        
        for(int index = 1 ; index < rainFall.length; index ++){
            if(rainFall[index] > highest)
                highest = rainFall[index] ;
        }
        return highest;
    }
    
    //get the month with the least rain 
     public double getLowest ()
    {
        double lowest = rainFall[0];
        
        for(int index = 1 ; index < rainFall.length; index ++){
            if(rainFall[index] < lowest)
               lowest = rainFall[index] ;
                if(lowest < 0 )
                {
                  System.out.println("NO NEGATIVE NUMBER");
                  return 0;
                }   
            
        }
        return lowest;
    }
}```

Then I created another class with the main method to call other methods:

    ```import java.util.Scanner;
public class CalculateRain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        final int MONTHS  = 12; //the 12  months
        
        
        
        //create an array to hold the rain values for a year
        double []  rainFall = new double [MONTHS];
        
                
        getValues(rainFall);

       
        
        //create a rain fall object
        RainFall re = new RainFall (rainFall);
        
        //Display the total, average, highest, lowest values of the rain fall in
        // a year
        System.out.println("The total value of rain fall in a year: " + re.getTotal());
        System.out.println("The average value is: " + re.getAverage());
        System.out.println("The highest month has the value: " + re.getHighest());
        System.out.println("The lowest month has the value: " + re.getLowest());
                
        }
        
        private static void getValues(double [] array)
        {
            Scanner keyboard = new Scanner (System.in);
            
            //get the values of the months
            for (int i = 0 ; i  < array.length ; i ++)
            {
                    System.out.println("Enter the value for the month "  + (i+1));
                    array[i] = keyboard.nextDouble();
                    if (array[i] < 0 )
                    {
                        System.out.println("The value SHOULD NOT BE a NEGATIVE number");
                        break;
                    }
                              
            }
    }
}```

I tried to create another loop inside the for (int i = 0 ; i  < array.length ; i ++)

but before that, I created another array to hold the names of the months

    ```String  [] month = {"January", "February","March",etc};```
and inside the for loop I did something like this
  

    ```for ( int i = 0 ; i < array.length ; i ++)
    {
      for (int index = 0; month.length; index++)
       {
         System.out.println("The rainfall value of the " + month[index]);
           array[i] = keyboard.nextDouble();
                    if (array[i] < 0 )
                    {
                        System.out.println("The value SHOULD NOT BE a NEGATIVE number");
                        break;
                    }
        }
     }```
It ran, but I created an infinite loop. 
Where did I miss it?
Thank you so much, guys.

