src/java/org/pifan/util/StringUtils.java
/**
     * Index of the first found letter. This method will return -1 if no letters are found.
     * 
     * @param str
     * @return
     */
Index of the first found letter. This method will return -1 if no letters are found.

@param str
@return
Index of the first found letter . This method will return - 1 if no letters are found . @param str @return
public static int indexOfChar(String str) {
        for (int i = 0; i < str.length(); i++) {
            if (Character.isLetter(str.charAt(i))) {
                return i;
            }
        }
        return -1;
    }
public static int indexOfChar ( String str ) { for ( int i = 0 ; i < str . length ( ) ; i ++ ) { if ( Character . isLetter ( str . charAt ( i ) ) ) { return i ; } } return - 1 ; }
Index of the first found letter.
Index of the first found letter .