Find the hash value for each arr [ i ] by calling hash function
h = hashFunction ( arr [ i ] ) ; if ( ! m . containsKey ( h ) ) { m . put ( h , new Vector < Integer > ( ) ) ; } m . get ( h ) . add ( arr [ i ] ) ; }