1. //将元素存入map,存在取出存放数量,否则 0
    2. map.put(num, map.getOrDefault(num, 0) + 1);