Java tutorial
//package com.java2s; import java.util.HashMap; public class Main { public static void printDictionary(HashMap<Integer, String> dict) { System.out.println("Index\t\tEntry\n---------------------"); for (int i = 0; i < dict.size(); i++) { System.out.println(i + "\t\t" + dict.get(i)); } } }