Code example for ArrayDeque

Methods: peek

0
	 * Retrieves, but does not remove the first key 
	 *  
	 * @return the first key 
	 */ 
	public K peekKey() { 
		K key = this.keys.peek();
 
		//assert key != null; 
		return key;
	} 
 
	/** 
	 * Retrieves and remove the first key 
	 *  
	 * @return the first key 
	 */ 
	public K removeKey() { 
		K key = this.keys.remove();
		//assert key != null; 
		return key;