// This program reads in a string and outputs the characters that are vowels.
// Barry Cornelius, 3 June 2000
import java.io. BufferedReader;
import java.io. InputStreamReader;
import java.io. IOException;
public class StringVowels
{
   public static void main(final String[] pArgs) throws IOException
   {
      final BufferedReader tKeyboard =
                    new BufferedReader(new InputStreamReader(System.in));
      System.out.print("Type in a string: ");
      System.out.flush();
      final String tInputString = tKeyboard.readLine();
      System.out.print("Here are the vowels of this string: ");
      final int tStringLength = tInputString.length();
      for (int tCharNumber = 0; tCharNumber<tStringLength; tCharNumber++) 
      {
         final char tChar = tInputString.charAt(tCharNumber);
         final char tLowerChar = Character.toLowerCase(tChar);
         if (tLowerChar=='a' || tLowerChar=='e' || tLowerChar=='i' ||
                                tLowerChar=='o' || tLowerChar=='u') 
         {
            System.out.print(tChar);
         }
      }
      System.out.println();
   }
}
