Need help finalizing program, I'm able to display the highest points and during what game but it's not working for the lowest score and game.
int max = 1;
int min = 1;
int highestGame = 1;
int lowestGame = 1;
Scanner input = new Scanner(System.in);
System.out.println("Enter Texan's First 8 Regular Season Points Per Game");
System.out.println("----------------------------------------------------");
for (int currentGame = 1; currentGame <= 8; currentGame++)
{
System.out.print("Points For Game " + currentGame + ": ");
int points = input.nextInt();
if (points > max)
{
max = points;
highestGame = currentGame;
}
if (points > min)
{
min = points;
if (min < max)
{
min = min;
lowestGame = currentGame;
}
}
}
System.out.println("Highest Points Scored Was " + max + " In Game " + highestGame);
System.out.println("Lowest Points Scored Was " + min + " In Game " + lowestGame);
}
}