Guest User

Untitled

a guest
Oct 23rd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.37 KB | None | 0 0
  1. private static int spellcheckHash(ArrayList<BookWord> array, SimpleHashSet<String> dicToCompare) {
  2.         int hashCompares = 0;
  3.         for (BookWord element : array) {
  4.             if(element.getWordCharacters().hashCode() != dicToCompare.getHash(element.getWordCharacters(), 1)) {
  5.                 hashCompares++;
  6.             }
  7.         }
  8.         return hashCompares;
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment