Code example for LinkedList

Methods: addFirst

0
	} 
	 
	 
	public void addFirst( ELEMENT elem ) {
		assert Q.nn( elem );
		list.addFirst( elem );
	} 
	 
	 
	public ELEMENT removeLast() { 
		return list.removeLast();
	} 
	 
	public boolean remove(ELEMENT elem) {
		return list.remove( elem );
	} 
}