*            the number of entries to print
	 */
	private void printListTemplate(int indicator, int n) {
		DecimalFormat df = new DecimalFormat("#########0.00");
		Node<AnyType> current = beginMarker.next;
		int i = 1;
		if (indicator == 1) {
			while (current != endMarker) {
				if (i > n)
					break;
				System.out.println(current.data + "   " + current.count);
				current = current.next;
				i++;
			}
		}

		else {
			while (current != endMarker) {
				if (i > n)
					break;
				Double percentage = (double) (current.count * 100) / totalCount;
				percentage = (double) Math.round(10000 * percentage) / 10000;
				String formattedPercentage = df.format(percentage);
				System.out.println(current.data + "   " + formattedPercentage
						+ "%");
				i++;
				current = current.next;
			}
		}

	}