@Override
	public String toString() {
		String result = "";
		int counter = 0;

		if (!isEmpty()) {
			for (Object obj : queue) {
				if (obj != null) {
					result += counter + "[" + obj + "] ";
					if (counter == (head) % queue.length) {
						result += "(head) ";
					}
					if (counter == (tail) % queue.length) {
						result += "(tail) ";
					}
				}
				counter++;
			}
		} else {
			result = "Queue is empty.";
		}
		return result;
	}