<p>List&lt;Map.Entry&lt;String, List&lt;List<Object>&gt;&gt;&gt; entryList = new ArrayList&lt;&gt;(scoreDetailMap.entrySet());</p>
<p>List<String> sheetNames = entryList.stream()
.map(Map.Entry::getKey)
.collect(Collectors.toList());</p>
<p>List&lt;List&lt;List<Object>&gt;&gt; contents = entryList.stream()
.map(Map.Entry::getValue)
.collect(Collectors.toList());</p>
<p>entryList.forEach(entry -&gt; System.out.println(&quot;方法三的key为:&quot; + entry.getKey() + &quot;, value为:&quot; + entry.getValue()));</p>
final ListString sheetNames = new ArrayList; final ListListListObject contents = new ArrayList; SetMapEntryString ListListObject entries = scoreDetailMapentrySet; IteratorMapEntry

原文地址: http://www.cveoy.top/t/topic/hOn4 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录