is Vowel Character - Java java.lang

Java examples for java.lang:char

Description

is Vowel Character

Demo Code


//package com.java2s;

public class Main {
    public static boolean isVowel(char c) {
        if (c == 'e') {
            return true;
        } else if (c == 'i') {
            return true;
        } else if (c == 'a') {
            return true;
        } else if (c == 'u') {
            return true;
        } else if (c == 'o') {
            return true;
        } else if (c == '?') {
            return true;
        } else if (c == '?') {
            return true;
        } else if (c == '?') {
            return true;
        }/* w ww. j  a va2 s . c om*/
        return false;
    }
}

Related Tutorials