11智能在线
新记
请教,在List集合中怎么得到元素的索引值
如题所述
举报该文章
其他看法
第1个回答 2017-12-11
ArrayList list = new ArrayList ();
list [index] 即为索引为index处的值,类型为object类型,需要强制转换下。本回答被提问者采纳
相似回答
大家正在搜
相关问题
请教,在List集合中怎么得到元素的索引值
Java:如何获取list中所有元素的索引.
c# 如何获取List中当前元素的索引
C#List 如何根据索引获取值
java中 如何从LIST 查找指定元素的位置