Code example for LinkedList

Methods: peek

0
	 
	/** 
	 * ²é¿´¶ÑÕ»¶¥²¿µÄ¶ÔÏ󣬵«²»´Ó¶ÑÕ»ÖÐÒƳýËü¡£ 
	 */ 
	public E peek() { 
		return stack.peek();
	} 
	 
	/** 
	 * ÒƳý¶ÑÕ»¶¥²¿µÄ¶ÔÏ󣬲¢×÷Ϊ´Ëº¯ÊýµÄÖµ·µ»Ø¸Ã¶ÔÏó¡£ 
	 */ 
	public E pop() { 
		return stack.removeFirst();
	} 
	 
	/** 
	 * °ÑÏîѹÈë¶ÑÕ»¶¥²¿ 
	 */ 
	public E push(E item) {
		stack.addFirst(item);
		return item;