public void printAllResults() {
        for (Integer key : hm.keySet()) {
            Queue<String> q = hm.get(key);
            for (String s : q) {
                System.out.println(s);
            }
        }
    }