/**
 * A class that contains static methods for String manipulation.
 */
public class OurString {
  
  /**
   * Returns the first vowel in the given String s.
   * 
   * - assume that s contains at least 1 vowel!
   */
  public static String getFirstVowel(String s) {
    // local variables
    int indexA = s.indexOf("a"); // the location of the first "a" in s
    int indexE = s.indexOf("e"); // the location of the first "e" in s
    
    // the index of the first vowel
    int index = Math.min(indexA, indexE); // check which vowel comes earlier
    
    // then you would do the same thing for vowels "i", "o", and "u"..
    // Ex. index = Math.min(index, s.indexOf("i"))
    // in the end, this would give you the index of the first vowel.
    
    // But what's the problem? indexOf returns -1 if any vowel isn't found!
    // This really spoils things... any ideas about how to complete this method?
    
    return "" + s.charAt(index); // convert char to String
    
  }
  
}