Can someone guide me how to design a "Dictionary" (i.e. collection of words with respective meaning). Would like to know which design pattern to use and class diuagram.
I couldn't get any reference in Google. Any info would be of great help.
Printable View
Can someone guide me how to design a "Dictionary" (i.e. collection of words with respective meaning). Would like to know which design pattern to use and class diuagram.
I couldn't get any reference in Google. Any info would be of great help.
Simple Map<String, List<String>> is enough.
Word 1 => [ Meaning 1, Meaning 2, ... ]
Word 2 => [ Meaning 1, Meaning 2, ... ]
Thanks for the reply. In case of simple map, the search time would be very high if a dictionary contains millions of words.