@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append('[');
		Node<E> hcr = head;
		int pos = 0;
		while (hcr.next != null) {
			if (pos >= capacity)
				break;
			pos++;
			builder.append(hcr.next.val);
			builder.append(',');
			hcr = hcr.next;
		}
		if (builder.length() > 1) {
			builder.setLength(builder.length() - 1);
		}
		builder.append(']');
		return builder.toString();
	}