public static < K , V > Map < K , V > newCombinedMap ( K [ ] keys , V [ ] values ) { HashMap < K , V > map = new HashMap <> ( ) ; for ( int i = 0 ; i < keys . length ; i ++ ) map . put ( keys [ i ] , getValueOfIndex ( values , i ) ) ; return map ; }
New combined map map .