@Override
	public Object dequeue() 
	{
		// TODO Auto-generated method stub
		if (isEmpty()) 
		{
			throw new RuntimeException("Empty Queue");
		}
		Object temp = queue[f];
		queue[f] = null;
		f = (f + 1) % capacity;
		return temp;

	}