@@ -0,0 +1,1315 @@
+import java.io.*;%0Aimport java.util.*;%0A%0A/* Checks Resume content with job description content */%0A%0Apublic class ResumeJDComparison %7B%0A%0A%09private String resumeFilename;%0A%09private String descriptionFilename;%0A%0A%09private double percentMatch;%0A%0A%09public ResumeJDComparison(String resumeFilename, String descriptionFilename) %7B%0A%0A%09%09this.resumeFilename = resumeFilename;%0A%09%09this.descriptionFilename = descriptionFilename;%0A%09%09%0A%09%09this.analyze();%0A%0A%09%7D %0A%0A%09public double percentMatch() %7B%0A%09%09return percentMatch;%0A%09%7D%0A%0A%09private void analyze() %7B%0A%0A%09%09HashMap%3CString, Integer%3E jobDict = (new TextToHashMap(descriptionFilename)).getWordDict();%0A%09%09HashMap%3CString, Integer%3E resumeDict = (new TextToHashMap(resumeFilename)).getWordDict();%0A%0A%09%09int numMatch = 0; //Number of resume phrases in job description.%0A%0A%09%09for (String phrase: resumeDict.keySet()) %7B%0A%0A%09%09%09String%5B%5D words = phrase.split(%22%5C%5Cs+%22); //Gets all the words in a single phrase%0A%0A%09%09%09boolean match = true;%0A%0A%09%09%09//Checks if all the words in a phrase are present in the job description%0A%09%09%09for (int i = 0; i %3C words.length; i++) %7B%0A%0A%09%09%09%09if (!jobDict.containsKey(words%5Bi%5D)) %7B%0A%09%09%09%09%09match = false;%0A%09%09%09%09%09break;%0A%09%09%09%09%7D%0A%0A%09%09%09%7D%0A%0A%09%09%09if (match) %7B%0A%09%09%09%09numMatch += 1;%0A%09%09%09%7D%0A%0A%0A%0A%09%09%7D%0A%0A%09%09this.percentMatch = ((double) numMatch) / jobDict.size(); //Number of resume matched words divided by number of words in JD%0A%0A%0A%09%7D%0A%0A%7D%0A

Create ResumeJDComparison.java