Map paramMap = new LinkedHashMap<>();这种写法在myeclipse 、JDK1.7环境中编译错误 :Incorrect number of arguments for type LinkedHashMap; it cannot be parameterized with arguments <?>,请问是什么引起的呢?
Map paramMap = new LinkedHashMap<>();这种写法在myeclipse 、JDK1.7环境中编译错误 :Incorrect number of arguments for type LinkedHashMap; it cannot be parameterized with arguments <?>,请问是什么引起的呢?
jdk1.7之前要求实例化的时候需要指明泛型。而1.7以及以后的版本中可以省略。可以检查下你的编译版本。