Lecture 12
13
Dictionary (continued)
•Look up a Definition: getEntry (line 48)
–delegate to TreeMap get method, passing String word as the argument  (line 50)
–cast retrieved anonymous object to Definition   
–return the Definition (null if not found)        
•How large is this Dictionary?  getSize (line 61)
–delegate to TreeMap size method
•What’s a Definition?
–just one String field, set in constructor, access by public getter (toString)
–would be richer in a real dictionary (pronunciation, etymology, …)