Code example for Stack

Methods: elementAt, remove, size

0
		return histSize;
	} 
 
	public String getHistory() {
		// load the 2nd to last page 
		String loadHtml = histHtmlStack.elementAt(histHtmlStack.size() - 2);
 
		// remove the current page 
		histHtmlStack.remove(histHtmlStack.size() - 1);
		histTitleStack.remove(histTitleStack.size() - 1);
		return loadHtml;
	} 
 
	public String getPageTitle() {
 
		return pageTitle;
	} 
 
	public void setPageTitle() { 
 
		if (histTitleStack.size() > 0)