CA664project / Spell-Checker

Java Spell Checker for John's group project
0 stars 0 forks source link

Create map of misspelled words, index and word #2

Open cian-wyse opened 9 years ago

cian-wyse commented 9 years ago

Map badWords(ArrayList words){ for each misspelled word, add index of word and word value to badWords }

cian-wyse commented 9 years ago

Looks like a Hashtable is the way to go for this I think, rather than a map (unless we do a home made map??) @shaunhegarty and @AmyC246 what you reckon? Does he expect us to use our own map as per this weeks lab stuff?

cian-wyse commented 9 years ago

I created a branch, and merged this file back to the master. Still figuring out how this all works...

shaunhegarty commented 9 years ago

Netbeans is pretty harsh. Gives me a "Collection Obsolete" error for hashtables.

I haven't watched the videos yet, but do hastables not generate its own index based on the elements involved? And since we intend change an element but keep the same index it sounds like it would conflict.

cian-wyse commented 9 years ago

I think they do what a map does (as opposed to hashmaps which seem to mess up orders...). Guess it wouldn't be too much of a stretch just to make a map

cian-wyse commented 9 years ago

I've re worked it with a hashMap which I think is ok, I'm going to wait till we're in class to merge to make sure I know what I'm doing!