title: Why isn't this excluding vowels?
body: <p>This pulls from a word bank our teacher gave us, and I'm supposed to return the longest word without vowels. But it either returns a word with vowels or nothing at all. Please Help.</p>
  
  <p>//What is the longest word with no vowels (counting y as a vowel)?</p>
  
  <pre><code>   public static void Question7()
     {  
       // return the number of words in wordlist ending in "ing"
       String longestWordSoFar = " ";
       System.out.println("Question 7:");
       int numberOfWords = 0; //count of words ending in ing
       for(int i = 1; i &lt; WordList.numWords(); i++) // check every word in wordlist
          {
             if(noVowel(WordList.word(i))) { // if the length is greater than the previous word, replace it
             {
  
                if(WordList.word(i).length() &gt; longestWordSoFar.length())            
                   longestWordSoFar=WordList.word(i);
                }      
             }
  
       }
       System.out.println("longest word without a vowel: " + longestWordSoFar);
       System.out.println();
       return;
     }
     public static boolean noVowel(String word) {
       //tells whether word ends in "ing"
          for(int i = 0; i &lt; word.length(); i++) {
             //doesnt have a vowel - return true
             if (word.charAt(i) != 'a') {
             return true;
             }
             if (word.charAt(i) != 'e') {
             return true;
             }
             if (word.charAt(i) != 'i') {
             return true;
             }
             if (word.charAt(i) != 'o') {
             return true;
             }
             if (word.charAt(i) != 'u') {
             return true;
             }
             if (word.charAt(i) != 'y') {
             return true;
             }
  
             }
          return false;
          }
  </code></pre>