title: While Loop in Java
body: <p>I am trying to write a program that will loop when the user inputs a "y" or "yes" it.</p>
  
  <pre><code>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 &gt;= 1 &amp;&amp; students &lt;= 5)
  
  {
  for(int i = 0; i &lt; 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();
  }
  </code></pre>
  
  <p>Please help every time I type in y or yes I keep getting errors</p>