随笔分类 -  数据结构

摘要:今天我们主要讲了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-- 阅读(204) 评论(0) 推荐(0)
摘要:今天我们主要讲了一些链表的练习题,希望大家可以从中体会链表的使用方式,加深对链表的理解。 回顾昨天内容: 总结: List List subList(int fromIndex, int toIndex) 视图技术 ListIterator listIterator() ListIterator l 阅读全文
posted @ 2020-05-15 00:40 dust-- 阅读(124) 评论(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-- 阅读(144) 评论(0) 推荐(0)
摘要:学习大纲 Collection List 数组和链表 List子类 JDK5新特性 今天我们主要讲Collection和List。 正式讲课之前,我们先来搞明白三个小问题: 1. 为什么需要集合类? 很多情况下,我们需要对一组对象进行操作。而且很可能事先并不知道到底有多少个对象。为了解决这个问题呢, 阅读全文
posted @ 2020-05-14 23:57 dust-- 阅读(279) 评论(0) 推荐(0)