Code example for Stack

Methods: elementAt, size

0
		return pageTitle;
	} 
 
	public void setPageTitle() { 
 
		if (histTitleStack.size() > 0)
			pageTitle = histTitleStack.elementAt(histTitleStack.size() - 1);
		else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
			pageTitle = null;
		else 
			pageTitle = "ArchWiki Viewer";
 
		WikiChromeClient.setTvTitle(pageTitle);
	} 
 
	public void goBackHistory() { 
		String prevHtml = getHistory();
		loadWikiHtml(prevHtml);
	} 
 
	public static void loadWikiHtml(String wikiHtml) {