I am trying to write a program that will loop when the user inputs a "y" or "yes" it.
System.out.println("Tuition Wasted Based on Studnet Absences and its effacton GPA");
System.out.println("Enter the number of students to consider: ");
students = keyboard.nextInt();
while (choice == y)
{
if (students >= 1 && students <= 5)
{
for(int i = 0; i < students; i++)
{
System.out.print("\nEnter the student ID for student: ");
studentID = keyboard.nextDouble();
System.out.println("Do you want to run the program again?");
choice = keyboard.nextInt();
}
Please help every time I type in y or yes I keep getting errors