摘要: 今天我们主要讲了List的子类:ArrayList, Vector, LinkedList 以及 JDK5 的一些特性:静态导入和泛型。 接昨天的练习: Ex3:反转链表 1 package com.cskaoyan.exercise; 2 3 public class Ex1 { 4 public 阅读全文
posted @ 2020-05-15 01:25 dust-- 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 今天我们主要讲了一些链表的练习题,希望大家可以从中体会链表的使用方式,加深对链表的理解。 回顾昨天内容: 总结: List List subList(int fromIndex, int toIndex) 视图技术 ListIterator listIterator() ListIterator l 阅读全文
posted @ 2020-05-15 00:40 dust-- 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 今天我们主要将了数组和链表。 复习昨天 集合类: a.集合类可以自己调整大小 b.只能存储引用类型的数据 c.有丰富的API Collection 概述: API: 增: boolean add(E e) boolean add(Collection c) 删: void clear() boole 阅读全文
posted @ 2020-05-15 00:32 dust-- 阅读(126) 评论(0) 推荐(0) 编辑