src/main/java/seedu/address/ui/autocompleter/AutocompleteCommand.java
public static boolean hasIndexParameter (String command) throws IllegalArgumentException {
        try {
            return Arrays.asList(commandsWithIndexes).contains(command);
        } catch (NullPointerException e) {
            return false;
        } catch (IllegalArgumentException ie) {
            throw new IllegalArgumentException();
        }
    }
/**
     * Returns true if {@code command} takes in an {@code Index} as an argument
     */
Returns true if  command takes in an  Index as an argument
Returns true if command takes in an Index as an argument
public static boolean hasIndexParameter (String command) throws IllegalArgumentException {
        try {
            return Arrays.asList(commandsWithIndexes).contains(command);
        } catch (NullPointerException e) {
            return false;
        } catch (IllegalArgumentException ie) {
            throw new IllegalArgumentException();
        }
    }
public static boolean hasIndexParameter ( String command ) throws IllegalArgumentException { try { return Arrays . asList ( commandsWithIndexes ) . contains ( command ) ; } catch ( NullPointerException e ) { return false ; } catch ( IllegalArgumentException ie ) { throw new IllegalArgumentException ( ) ; } }
Returns true if {@code command} takes in an {@code Index} as an argument
Returns true if { @code command } takes in an { @code Index } as an argument