
list里面有map,怎么遍历出来?
ArrayListlist=newArrayList();Mapmap=newHashMap();list.add(map);怎么遍历得到map的键及key...
ArrayList list = new ArrayList();
Map map = new HashMap();
list.add(map);
怎么遍历得到map的键及key 展开
Map map = new HashMap();
list.add(map);
怎么遍历得到map的键及key 展开
1个回答
展开全部
这样可以把三类map的value都分别显示出来?
List> result = null;
Map<String,String> asset = new HashMap<>();
Map<String,String> num = new HashMap<>();
Map<String,String> rank = new HashMap<>();
<c:forEach items="${dataList}" var="mapData">
<c:forEach items="${mapData}" var="map">
<c:out value="${map.key}"></c:out>:<c:out value="${map.value}"></c:out>
</c:forEach>
</c:forEach>
Map map = (Map)list.get(0);String str = (String)map.get("w");//str就是22
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询