title: while Loop for vowel counter
body: <p>I am trying to get a while loop program where it counts the number of vowels and takes the vowels out of the sentences, also repeating the process until the user inputs quit. I am having trouble getting the while loop to work. </p>
  
  <pre><code>import java.util.Scanner;
  public class blank1
  {
      public static void main(String[] args)
      {
          Scanner input = new Scanner(System.in);
          System.out.println("Enter a Sentence: (Enter quit to exit) ");
          String input1 = input.nextLine();
          int vowelCount = 0;
  
          while(input.equals("quit")){
  
              System.out.println("Enter a Sentence: (Enter quit to exit) ");
              for (char c : input1.toCharArray())
              {
                  switch(c)
                  {
  
                      case 'A':
                      case 'a':
  
                      case 'E':
                      case 'e':
  
                      case 'I':
                      case 'i':
  
                      case 'O':
                      case 'o':
  
                      case 'U':
                      case 'u':
                          vowelCount++;
  
                          System.out.println(vowelCount);
                  }
              }
          }
      }
  }
  </code></pre>