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.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
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, ... ]
Last edited by kajasweb; January 15th, 2013 at 02:08 AM. Reason: Changing Subscription Option
Kaja Mohideen
My Blog - http://blog.kajasweb.com/
Thanks for the reply. In case of simple map, the search time would be very high if a dictionary contains millions of words.