basically i have created a program which reads integers from a txt file and works out the averages etc. now the below code i wrote to simply state which month has the highest or lowest rainfall. below i have created the code but on compiling says there an error....can someone spot it and tell me where i have gone wrong? thank you
.............................................................................
double min = store.get(0);
for(int i=1; i <12; i++){
if(store.get(i)> min);
min=store.get(i);
}
System.out.println("The Minimum Monthly Rainfall is" + min);
double max = store.get(0);
for(int i=1; i <12; i++){
if(store.get(i)< max);
max=store.get(i);
}
System.out.println("The Maximum Monthly Rainfall is" + max);
}