An example from our notes in using MAX_VALUE is:
int min = Integer.MAX_VALUE;
for (int count = 0; count < numScores; count++){
System.out.print(“Enter score: );
int currentScore = console.nextInt();
if (currentScore < min){
min = currentScore;
}
}
This was used to find the minimum value. You can set an int variable equal to MAX_VALUE and then use that int variable you set to MAX_VALUE to compare it.