public static boolean isAlphabetic(String s) {
        if (isEmpty(s)) return defaultEmptyOK;
        // Search through string's characters one by one
        // until we find a non-alphabetic character.
        // When we do, return false; if we don't, return true.
        for (int i = 0; i < s.length(); i++) {
            // Check that current character is letter.
            char c = s.charAt(i);
            if (!isLetter(c))
                return false;
        }
        // All characters are letters.
        return true;
    }
public static boolean isAlphabetic(String s) {
        if (isEmpty(s)) return defaultEmptyOK;
       
       
       
        for (int i = 0; i < s.length(); i++) {
           
            char c = s.charAt(i);
            if (!isLetter(c))
                return false;
        }
       
        return true;
    }
public static boolean isalphabetic(string s) { if (isempty(s)) return defaultemptyok; for (int i = 0; i < s.length(); i++) { char c = s.charat(i); if (!isletter(c)) return false; } return true; }