Code example for Deque

Methods: push, size

0
	@Override 
	public void execute(final Deque<String> stack, final double x) throws InvalidFormatPSFunctionException {
		if(stack==null)
			throw new InvalidFormatPSFunctionException(); 
 
		stack.push(String.valueOf(stack.size()));
	} 
}