// 创建Map其中newHashMapWithExpectedSize更具有实际意义 Map<Integer, Integer> map1= Maps.newHashMap(); Map<Integer, Integer> map2 = Maps.newHashMapWithExpectedSize(8); Map<Integer, Integer> map3 = new HashMap<>(8);