public E dequeue(){
		if(total ==0) throw new NoSuchElementException();
		E e = arr[first];
		arr[first] = null;
		if(++first == arr.length) first = 0;
		if(--total >0 && total == arr.length / 4) resize(arr.length/2);
		return e;
	}