有什么理由不允许以下行为?HashMap<long, long> x = new HashMap<>(); 最佳答案 您正在使用图元重写为HashMap<Long,Long> x = new HashMap<>()