8788899091929394959697
} public static Map map(Object... arrays) { Map maps = new HashMap(); if (arrays.length % 2 != 0) throw new ArgumentErrorException("arrays 长度 必须为偶数"); for (int i = 0; i < arrays.length; i++) { maps.put(arrays[i], arrays[++i]); } return maps; }