static boolean hasLetters(S s) { for (int i = 0; i < s.length(); i++) if (Character.isLetter(s.charAt(i))) ret true; ret false; }