Code example for Collection

Methods: remove

0
            if(helpArg.isPresent(args)) {
                if(propertyNames.size() == 1) {
                    return; 
                } 
                names = new ArrayList<String>(propertyNames);
                names.remove(helpArg.getFullName());
                names.remove(helpArg.getShortName());
            } else { 
                names = propertyNames;
            } 
            throw new CommandFormatException("Unrecognized argument names: " + names);
        } 
    } 
} 
Experience pair programming with AI  Get Codota for Java