/** * A DictionaryEntry consists of a word and a definition, both of * which are Strings. This class contains only a copy-and-paste * constructor and accessor methods, plus a toString() method. * * David Liben-Nowell (CS127, Carleton College) * Winter 2006 * */ public class DictionaryEntry { private String word; private String definition; public DictionaryEntry(String word, String definition) { this.word = word; this.definition = definition; } public String getWord() { return word; } public String getDefinition() { return definition; } public String toString() { return "(" + word + ", " + definition + ")"; } }