Higher Order Functions with Java to find vowels in a word