Created
May 29, 2016 00:20
-
-
Save josinSbazin/8884acd1213d096301096bdd6133e952 to your computer and use it in GitHub Desktop.
метод проверяет, гласная ли буква
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//метод проверяет, гласная ли буква | |
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