The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I was thinking I will need to use string tokenizer to break each line down into words and a Binary search tree to store the dictionary then check each word with them.
Just wondering if anyone out there who knows their java would be willing to give me help or pointers of I get stuck.
thanks if you are able to help.
ie
If the word is found move on to the next one but if it isn't found (how do you know if it isn't found?) then inform the user and ask them if they want to add it to the dictionary.
I have quite a bit done, got the code to load in the files (the dictionary automatically and the other one the user enters into the DOS window) I have set up the string tokenizer to read each word (space being the terminating character) and have a little code for the tree set up but no methods like add, remove, find etc so i'll need to do them soon.
One of the problems I have is dealing with apostrophes and " - " within words, Im not sure how to handle them and to make sorting easier I know I would need to balance the tree so I need to look up how to do that.
I was thinking I will need to use string tokenizer to break each line down into words and a Binary search tree to store the dictionary then check each word with them.
Just wondering if anyone out there who knows their java would be willing to give me help or pointers of I get stuck.
thanks if you are able to help.