public static String displayTokens(double minimumTFIDF, double minimumIDF) {

        String tempOutput = "";
        String output = "";
        int tokenCount = 0;

        Iterator iterator = dictionaryMap.entrySet().iterator();

        while (iterator.hasNext()) {
            Map.Entry termEntry = (Map.Entry) iterator.next();
            String key = (String) termEntry.getKey();
            ArrayList<String[]> postingsList = (ArrayList) termEntry.getValue();
            Double[] iDFArray = (Double[]) inverseDocFreqMap.get(key);
            double IDFValue = iDFArray[IDF];

            if (IDFValue >= minimumIDF) {
                tokenCount++;
                tempOutput = tempOutput + "Token: '" + key + "'\n";
                tempOutput = tempOutput + "iDF: " + df.format(IDFValue) + "\n";
                for (int i = 0; i < postingsList.size(); i++) {

                    if (Double.parseDouble(postingsList.get(i)[TFIDF_WEIGHT]) >= minimumTFIDF) {
                        tempOutput = tempOutput + postingsList.get(i)[DOC_NAME];
                        tempOutput = tempOutput + "; tf: " + df.format(Double.parseDouble(postingsList.get(i)[TERM_FREQ]));
                        tempOutput = tempOutput + "; tf-idf: " + df.format(Double.parseDouble(postingsList.get(i)[TFIDF_WEIGHT])) + "\n";
                    }
                }
                tempOutput = tempOutput + "\n";
            }
        }
        output = output + "Total tokens: " + tokenCount + "\n\n" + tempOutput;
        return output;
    }