论坛
提问
用户
提问
×
游客
登录
注册
忘记密码?
我们可以像数组索引一样使用索引来访问List
吗?
论坛
我们可以像数组索引一样使用索引来访问List<T>吗?
34 浏览
2023年6月2日
匿名的
2023年6月3日
0
Comments
我们可以像数组索引一样使用索引来访问List
吗?
我在想我们是否可以使用索引来访问列表
例如:
List
list; list[5] //blah....
0
0
答案
活跃
已投票
最新
最老的
用户名或邮箱地址
密码
注册
Lost Password
Java可以使用String作为索引数组的键吗?(例如:array["a"]=1;)
按索引获取列表项
Collection initialization refers to the process of initializing a collection, such as a list or an array, with a set of values at the time of declaration. It allows for the convenient and concise initialization of collections without the need for extensiv
Java的JDK中是否有并发列表?
C# 中,列表比数组更好吗?
实例化一个列表
在Java中何时使用List而不是Array?
数组与List
:该何时使用哪个?
在Java中实例化一个List?
有没有一种方式可以循环遍历索引?
性能:在Java中迭代遍历一个列表
为什么java.util.Set没有get(int index)方法?
数组与列表的性能比较
当迭代时,数组(或ArrayList)和LinkedList表现相同吗?
Spring: 将某种类型的数组或列表注入到bean中
比较通用列表和数组
在Java中的并发数据结构
list.First()、list.ElementAt(0)和list[0]之间的区别是什么?
我可以通过 Arrays.asList(array) 将整数数组转换为 List
或 List
吗?
IList
vs List