How do I return the number of the month with the highest rainfall... in this case [3].
I can easily return the value of [3] but I need to return the index number itself in a private method.
The code of my constuctor is below...
Many thanks on what i'm sure is an easy problem!
// constructor
public Rainfall()
{
manchesterRain = new double[12];
manchesterRain[0] = 187.3;
manchesterRain[1] = 234.4;
manchesterRain[2] = 219.9;
manchesterRain[3] = 323.7;
manchesterRain[4] = 256.7;
manchesterRain[5] = 164.2;
manchesterRain[6] = 126.6;
manchesterRain[7] = 98.6;
manchesterRain

= 149.0;
manchesterRain[9] = 198.9;
manchesterRain[10] = 254.7;
manchesterRain[11] = 221.5;
}