Code example for Stack

Methods: size

0
		return bestAtom;
	} 
 
	@Override 
	public boolean hasNext() { 
		return explored.size() < size;
	} 
 
	@Override 
	public void back() { 
		explored.pop();
	} 
 
	@Override 
	public void reset() { 
		explored.clear();
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE