monkey-island/src/fr/eseo/game/command/Command.java
private void fillValues(String[] list) {
        for (String s : list) {
            // All array except first element (it's not a number)
            if (s != null) {
                try {
                    this.values.add(Integer.valueOf(s));
                } catch (NumberFormatException e) {
                    throw new NumberFormatException("It's not an integer : " + s);
                }
            }
        }
    }
/**
     * Parse the string array to an integer list.
     * @param list Array of string.
     */
Parse the string array to an integer list.
@param list Array of string.
Parse the string array to an integer list . @param list Array of string .
private void fillValues(String[] list) {
        for (String s : list) {
            if (s != null) {
                try {
                    this.values.add(Integer.valueOf(s));
                } catch (NumberFormatException e) {
                    throw new NumberFormatException("It's not an integer : " + s);
                }
            }
        }
    }
private void fillValues ( String [ ] list ) { for ( String s : list ) { if ( s != null ) { try { this . values . add ( Integer . valueOf ( s ) ) ; } catch ( NumberFormatException e ) { throw new NumberFormatException ( "It's not an integer : " + s ) ; } } } }
Parse the string array to an integer list.
Parse the string array to an integer list .
// All array except first element (it's not a number)