Skip to content

Instantly share code, notes, and snippets.

@josinSbazin
Created May 29, 2016 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josinSbazin/8884acd1213d096301096bdd6133e952 to your computer and use it in GitHub Desktop.
Save josinSbazin/8884acd1213d096301096bdd6133e952 to your computer and use it in GitHub Desktop.
метод проверяет, гласная ли буква
//метод проверяет, гласная ли буква
public static boolean isVowel(char c)
{
c = Character.toLowerCase(c); //приводим символ в нижний регистр - от заглавных к строчным буквам
for (char d : vowels) //ищем среди массива гласных
{
if (c == d)
return true;
}
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment