当前位置: 代码迷 >> J2SE >> 泛型相关的有关问题
  详细解决方案

泛型相关的有关问题

热度:200   发布时间:2016-04-24 13:29:29.0
泛型相关的问题
Map<String, RuntimeMonitor.ProcessCHeapInfo> gap = rt.getCHeap();
Iterator it = gap.entrySet().iterator();


就这么段代码,为什么第2行那里仍旧会提示 Iterator is a raw type.References to generic type Iterator<E>should be parameterized

...至今对泛形一头雾水,请各位大大指点一二

------解决方案--------------------
Iterator <Map.Entry <String,RuntimeMonitor.ProcessCHeapInfo > > it = gap.entrySet().iterator(); 

  相关解决方案