@@ -0,0 +1,527 @@
+package sun;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class Document %7B%0A%09int id;%0A%09List%3CRelevant_topic%3E topics=new ArrayList%3CRelevant_topic%3E();%0A%09public Document(int id)%7B%0A%09%09this.id=id;%0A%09%7D%0A%09public void addRelativeTopic(int tid, double score)%7B%0A%09%09topics.add(new Relevant_topic(new Topic(tid), score));%0A%09%7D%0A%09public void addRelativeTopic(Topic t, double score)%7B%0A%09%09topics.add(new Relevant_topic(t, score));%0A%09%7D%0A%09public int getID()%7B%0A%09%09return id;%0A%09%7D%0A%09public List%3CRelevant_topic%3E getRelativeTopic()%7B%0A%09%09return topics;%0A%09%7D%0A%7D%0A

Create Document.java