src/main/java/com/brianscottrussell/gameoflife/GameGrid.java
/**
     * given the grid input String, parses the row count if this is a valid input String
     *
     * Sample of expected format of input String where rowCount = 4:
     *
        4 8
        ......../n
        ....*.../n
        ...**.../n
        ........
     *
     * @param input String
     * @return int as the row count
     * @throws InvalidGameGridInputException
     */
given the grid input String, parses the row count if this is a valid input String
Sample of expected format of input String where rowCount = 4.



@param input String
@return int as the row count
@throws InvalidGameGridInputException
given the grid input String parses the row count if this is a valid input String Sample of expected format of input String where rowCount = 4 . @param input String @return int as the row count @throws InvalidGameGridInputException
private int parseRowCountFromInputString(String input) throws InvalidGameGridInputException {
        try {
            return Integer.valueOf(StringUtils.substring(input, 0, StringUtils.indexOf(input, ' ')));
        } catch (NumberFormatException e) {
            throw new InvalidGameGridInputException(e.getClass().getSimpleName() + ": " + e.getMessage());
        }
    }
private int parseRowCountFromInputString ( String input ) throws InvalidGameGridInputException { try { return Integer . valueOf ( StringUtils . substring ( input , 0 , StringUtils . indexOf ( input , ' ' ) ) ) ; } catch ( NumberFormatException e ) { throw new InvalidGameGridInputException ( e . getClass ( ) . getSimpleName ( ) + ": " + e . getMessage ( ) ) ; } }
given the grid input String, parses the row count if this is a valid input String
 Sample of expected format of input String where rowCount = 4:
given the grid input String parses the row count if this is a valid input String Sample of expected format of input String where rowCount = 4 :
// get the character(s), before the 1st space as the rowCount