title: Scanning each character in Java from a file
body: <p>I have a program which scans a text file and identifies whether or not each line starts with a vowel, however, I need to be able to scan each character to determine whether or not there are any vowels on the line and not just at the start. </p>
  
  <pre><code>String x = "";
  Set&lt;String&gt; vowells = new HashSet&lt;&gt;();
  vowells.add("a");
  vowells.add("e");
  vowells.add("i");
  vowells.add("o");
  vowells.add("u");
  
  while (sc.hasNextLine()) {
  
            readLine = new Scanner(sc.nextLine());
            x = readLine.nextLine();
            numberOfLines++;  
  
  
  
            if(vowells.contains(x.toLowerCase())) { 
  
            numberOfVowells++;
  
  
        }
      }
  </code></pre>
  
  <p>I have tried using <code>while sc.hasNext</code> and tried using splitregex but I have had no luck so I thought maybe my error is something small and someone here could help me?</p>