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

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