question: 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 ; }
target:  hash each shingle in the given set using String.hashCode(). A different hashing function could be used.