eclipse中hashMap的问题
我的eclipse中jdk版本是1.5的,但下列代码:
public static String replaceText(String content) //throws IOException
{
StringBuffer sb=new StringBuffer(content);
HashMap<String,String> hm=new HashMap<String,String>();
...
为什么老是提示:
The type HashMap is not generic; it cannot be parameterized with arguments <String, String>
哪位大虾遇到过类似的问题,怎么解决?