public static Option findOption(String name, Option[] options) {
        for (int i = 0; i < options.length; i++) {
            if (options[i].getName().equals(name)) {
                return options[i];
            }
        }
        return null;
    }
public static Option findOption ( String name , Option [ ] options ) { for ( int i = 0 ; i < options . length ; i ++ ) { if ( options [ i ] . getName ( ) . equals ( name ) ) { return options [ i ] ; } } return null ; }
Returns an option with the given name.

@param   name     The option name to search for
@param   options  The list of options to search through

@return  The named option from the list or null if it doesn't exist