See the HashMap or TreeMap collections. These are used for mapping a key (the word) to a value (the definition).