Code example for Stack

Methods: empty, peek

0
		} 
	} 
 
	public ScreenWidget getCurrentScreen() 
	{ 
		if ( m_screenStack.empty() )
			return null; 
		return m_screenStack.peek();
	} 
 
	/** 
	 * Handles the back operation by popping a screen 
	 * from the stack. 
	 */ 
	@Override 
	public boolean handleBack() 
	{ 
		if( !m_backEnabled )
		{ 
			return false; 
		}