Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static int spellcheckHash(ArrayList<BookWord> array, SimpleHashSet<String> dicToCompare) {
- int hashCompares = 0;
- for (BookWord element : array) {
- if(element.getWordCharacters().hashCode() != dicToCompare.getHash(element.getWordCharacters(), 1)) {
- hashCompares++;
- }
- }
- return hashCompares;
- }
Advertisement
Add Comment
Please, Sign In to add comment