Open cian-wyse opened 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?
I created a branch, and merged this file back to the master. Still figuring out how this all works...
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.
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
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!
Map badWords(ArrayList words){ for each misspelled word, add index of word and word value to badWords }