摘要: 遍历顺序表分为通过下标访问和通过迭代器访问两种方式 1、 下标访问:只要下标不超过列表的size大小,就不会抛出IndexOutOfBoundsException; public static void main(String[] args) { List<Integer> list = Lists 阅读全文
posted @ 2022-08-09 15:03 thePacer 阅读(99) 评论(0) 推荐(0) 编辑