I have two string arrays keys and values
String[] keys = {a,b,c,d}; String[] values = {1,2,3,4};
What is the fastest way to convert them i
Faster than this?
Map map = new HashMap<>(); if(keys.length == values.length){ for(int index = 0; index < keys.length; index++){ map.put(keys[index], values[index]); } }