My program keeps throwing this compiler error and my program is due by 12. Cannot figure this out. Please help.
import java.util.Scanner;
import java.util.Random;
//Michael Morris CSC151
public class PP4_8
{
public static void main (String [] args)
{
Random generator=new Random();
Scanner scan=new Scanner(System.in);
final int MAX=100;
int gen1;
int guess1;
int sum;
gen1=generator.nextInt(MAX)+ 0;
while (another.equalsIgnoreCase("y"))
{
while(guess1!=0)
{
do
{
System.out.println("I'm thinking of a number betweeen 1 and Max" +MAX +"can you guess what it is:");
guess1=scan.nextInt();
sum=guess1;
if(guess1==gen1)
System.out.println("The guess is correct");
if(guess1<gen1)
System.out.println("The guess is too low");
if(guess1>gen1)
System.out.println("The guess is too high");
System.out.println("The sum of guesses are:" +sum);
}while(guess1!=gen1)
System.out.println("Do you want too play again enter y for yes");
another=scan.nextLine();
}
}
}
}