src/java/org/pifan/util/StringUtils.java
/**
     * Find the next space in the given string.
     * 
     * @param str The string to search in for the next space
     * @return The index of the first space found, -1 of no space is found
     */
Find the next space in the given string.

@param str The string to search in for the next space
@return The index of the first space found, -1 of no space is found
Find the next space in the given string . @param str The string to search in for the next space @return The index of the first space found - 1 of no space is found
public static final int findNextSpace(String str) {
        if (str == null) {
            return -1;
        }
        for (int i = 0; i < str.length(); i++) {
            if (str.charAt(i) == ' ') {
                return i;
            }
        }
        return -1;
    }
public static final int findNextSpace ( String str ) { if ( str == null ) { return - 1 ; } for ( int i = 0 ; i < str . length ( ) ; i ++ ) { if ( str . charAt ( i ) == ' ' ) { return i ; } } return - 1 ; }
Find the next space in the given string.
Find the next space in the given string .