【发布时间】:2020-09-18 07:09:24
【问题描述】:
我有一个Map(int,List<String>),里面的一些列表是空的,例如:
{1 = [example1, 2000, May 22, 2020] , 2 = [example2, 120, May 30, 2020] , 4 = [example3, 120, May 30, 2020]}
所以在我的示例中,索引 3 中的列表为空。
所以我想在我的示例中获得地图中的最高索引,它将是 4。
【问题讨论】:
-
Map(int,List<String>)或Map<Integer,List<String>>?
标签: java android list arraylist hashmap