List list = new ArrayList();
Map map = null;
while (rs.next()) {
map = new HashMap();
map.put("fromIP", rs.getString(""));
map.put("toIP", rs.getString(""));
map.put("netMode", rs.getString(""));
list.add(map);
}
简单循环取出hashmap后直接get就行了。

Map map = null;
String netMode=null;

for(int i=0;i<list.size();i++){
map=(HashMap)list.get(i);
netMode=(String)map.get("netMode");
System.out.println(netMode);

}

相关文章:

  • 2022-12-23
  • 2021-11-01
  • 2021-07-24
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-15
  • 2022-12-23
  • 2021-09-23
  • 2021-09-28
  • 2022-01-29
相关资源
相似解决方案