So I am making a program where you write 10 marks and it tells you the maximum and the minimum.
I Have a problem with the Minimum,as the maximum does work.
My problem is that instead of the worst mark,it shows me the first mark entered.
This Is Using Jcreator(Java)
public void worstEnglish() {
System.out.println("The Worst English Mark Is");
//Array
int worstEnglish = english[0];
//Method
for (int i = 0; i < english.length; i++) {
if (english[i] < worstEnglish) {
english[i] = worstEnglish;
}//End Of If
}//End of loop
}