public static Map toMap(Object[] keys, Object[] values) {
		Map map = new HashMap<>();
		int i = 0;
		for (Object key : keys) {
			map.put(key, values[i++]);
		}
		return map;
	}
public static Map toMap ( Object [ ] keys , Object [ ] values ) { Map map = new HashMap < > ( ) ; int i = 0 ; for ( Object key : keys ) { map . put ( key , values [ i ++ ] ) ; } return map ; }
To map.

@param keys   the keys
@param values the values
@return the map