Hi Mr. Junilu, the idea behind my own dictionary is, I am reading Cambridge preparation for TOEFl textbook. So I am noting all the words I hit in the book in my mobile. Now instead, I wrote my own small java program to ask me a random question from the properties file at scheduled intervals. So that I can be in track with my preparation while at office also.
Junilu Lacar wrote:Why go to all the trouble of implementing your own dictionary? Why not build on something that's already there? If you're just studying for the TOEFL, all you really need is a way to get definitions of words, right? I would start with finding a Word of The Day site, then maybe find an API to get word definitions, like http://developer.wordnik.com/
William P O'Sullivan wrote:Quite a difficult task IMHO.
How will you know the user gives the correct definition?
An exact String comparison which would have to match your property value?
As for your Class diagram, not sure what it's telling me.
Thank you Mr. Junilu, I will post some sample code snippets. I will just list the snippets where I want you people to focus and will update this thread ASAP. However I found that the present architecture is tightly coupled. In my next reply I will post the previous code snippets and new design.
Junilu Lacar wrote:Chaitanya, you are welcome to post short snippets of code for discussion about specific questions or doubts you may have. Posting 100+ lines of code is less useful because few people will take the time to read through that much code. Posting code as an attachment is the least useful for you because hardly anyone, if any at all, will take the time to open up the attachment and go through potentially hundreds of lines of code.
If you post small snippets of code, please use the code tags (click on the Code button in the editor) to make the code more readable and preserve indentation and spacing.