@@ -0,0 +1,1033 @@
+%0A/*Pair object class%0A * Stores a pair of word1, word2, and the occurrence rate of the pair%0A */%0A%0Apublic class Pair implements Comparable %7B%0A%0A%09private String word1;%0A%09private String word2;%0A%09%0A%09private int occRate = 0;%0A%09%0A%09private final static int COLD = 0;%0A%09private final static int WARM = 1;%0A%09private final static int HOT = 2;%0A%09%0A%09private int rating  = 0;%0A%09%0A%09public String getWord1() %7B%0A%09%09return word1;%0A%09%7D%0A%09%0A%09public String getWord2() %7B%0A%09%09return word2;%0A%09%7D%0A%09%0A%09public Pair(String word1, String word2) %7B%0A%09%09%0A%09%09this.word1 = word1;%0A%09%09this.word2 = word2;%0A%09%09%0A%09%7D%0A%09%0A%09public Pair(String word1, String word2, int occRate) %7B%0A%09%09this.word1 = word1;%0A%09%09this.word2 = word2;%0A%09%09this.occRate = occRate;%0A%09%7D%0A%09%0A%09public void setOccRate(int occRate) %7B%0A%09%09this.occRate = occRate;%0A%09%7D%0A%09%0A%09public int getOccRate() %7B%0A%09%09return occRate;%0A%09%7D%0A%09%0A%09public void setRating(int rating) %7B%0A%09%09this.rating = rating;%0A%09%7D%0A%09%0A%09public int getRating() %7B%0A%09%09return rating;%0A%09%7D%0A%0A%0A%09@Override%0A%09public int compareTo(Object o) %7B%0A%09%09return ((Integer) occRate).compareTo( ((Pair) o).getOccRate());%0A%09%7D%0A%09%0A%09%0A%7D%0A

Create Pair.java