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.

Results 1 to 3 of 3

Thread: Design a Dictionary

  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Design a Dictionary

    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.


  2. #2
    Junior Member
    Join Date
    Jan 2013
    Location
    Chennai, India
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Design a Dictionary

    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

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    114
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Re: Design a Dictionary

    Thanks for the reply. In case of simple map, the search time would be very high if a dictionary contains millions of words.

Similar Threads

  1. Dictionary
    By Skybear in forum Totally Off Topic
    Replies: 2
    Last Post: December 10th, 2012, 03:47 PM
  2. Dictionary
    By Skybear in forum Java Theory & Questions
    Replies: 1
    Last Post: December 10th, 2012, 07:00 AM
  3. Using english dictionary
    By hope2012 in forum Java IDEs
    Replies: 1
    Last Post: November 4th, 2012, 02:57 PM
  4. How to Use google Dictionary in my Java APplication
    By jaikumar in forum Web Frameworks
    Replies: 1
    Last Post: January 30th, 2012, 09:56 AM
  5. Unscrambler, trying to get the last word of a dictionary...
    By csharp100 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 1st, 2011, 03:44 AM