public static String getMatchesBetween2docs(String docA, String docB) {

        String output = "";
        boolean containsA = false;
        boolean containsB = false;

        matchingTokens.clear();
        Iterator iterator = dictionaryMap.entrySet().iterator();
        while (iterator.hasNext()) {
            containsA = false;
            containsB = false;
            Map.Entry termEntry = (Map.Entry) iterator.next();
            String token = (String) termEntry.getKey();
            ArrayList<String[]> postingsList = (ArrayList) termEntry.getValue();
            for (int i = 0; i < postingsList.size(); i++) {
                if (postingsList.get(i)[DOC_NAME].equals(docA)) {
                    containsA = true;
                }
                if (postingsList.get(i)[DOC_NAME].equals(docB)) {
                    containsB = true;
                }
            }
            if (containsA && containsB) {

                matchingTokens.add(token);

                System.out.println("'" + token + "'");
                output = output + "'" + token + "'" + "\n";
                System.out.println(" ");
                System.out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - ");
                output = output + "- - - - - - - - - - - - - - - - - - - - - - - - - - - \n";
                System.out.println(" ");
//                    System.out.print(", tFiDF: " + postingsList.get(i)[tFiDF]);
//                    System.out.print(", Term Frequency: " + postingsList.get(i)[termFrequency]);
//                    System.out.print(", iDF: " + IDF);
//                    System.out.print(", Document: " + postingsList.get(i)[documentName]);
//                    System.out.print(", Document Frequency: " + postingsList.get(i)[frequency]);
//                    System.out.println(", Posting list size: " + postingsList.size());

            }

        }
        return output;

    }