how to check whether a character is vowel or not in java

how to check whether a character is vowel or not in java
// determine whether a character is vowel

public static boolean isVowel(char letter) {
        String vowels = "aeouiAEOUI";
        return vowels.indexOf(letter) != -1; 
    }
‮S‬ource:www.lautturi.com
Created Time:2017-09-10 11:40:52  Author:lautturi