Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char[] cyrLetters = {"й", "ц", "у", "к", "е", "н", "г", "ш", "щ", "з", "х", "ф", "ы", "в", "а", "п", "р", "о", "л", "д", "ж", "э", "я", "ч", "с", "м", "и", "т", "ь", "б", "ю", "ъ", "ё"};
- boolean isSpam = false;
- for(String x: cyrLetters){
- if(lowermail.contains(x)){
- isSpam = true;
- }
- }
- boolean isSpam = lowerMail.matches(".*[А-яЁё].*");
Add Comment
Please, Sign In to add comment