public static Set<Integer> hash(Set<String> shingles){
  Set<Integer> hashedShingles=new LinkedHashSet<>();
  for (  String shingle : shingles) {
    int hashValue=shingle.hashCode();
    hashedShingles.add(hashValue);
  }
  return hashedShingles;
}

public static Set < Integer > hash ( Set < String > shingles ) { Set < Integer > hashedShingles = new LinkedHashSet < > ( ) ; for ( String shingle : shingles ) { int hashValue = shingle . hashCode ( ) ; hashedShingles . add ( hashValue ) ; } return hashedShingles ; }
hash each shingle in the given set using string . hashcode ( ) . a different hashing function could be used .
