ユーザーが「y」または「yes」を入力するとループするプログラムを作成しようとしています。
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();
}
y または yes と入力するたびに助けてください。エラーが発生し続けます