Code example for ListIterator

Methods: hasNextnextIndex

	 * Returns the next Argument object in the iteration. 
	 * @return next Argument in the iteration. 
	 * @throws ArgumentException throws when there are no arguments left in the iteration. 
	public Argument getNextArgument() throws ArgumentException { 
		if(argumentListIterator.hasNext()) return;
		throw new ArgumentException(argumentListIterator.nextIndex() + 1 + ". argument is missing.");
Contextual code suggestions in your IDE  Get Codota for Java