Java List

List接口 An ordered collection (also known as a sequence). The user of this interface has precise control over where in the list each element is inserted. The user can access elements by their integer index (position in the list), and search for elements in the list. 上面这段引用就是jdk8对List的定...

2023-02-11 · 4 min · 1704 words · luolin

Java Map

本文主要介绍Map接口以及其主要实现类:HashMap、LinkedHashMap、TreeMap、Hashtable、Properties...

2023-02-11 · 8 min · 3777 words · luolin

Java Set

Set接口 HashSet、LinkedHashSet、TreeSet HashSet是Set接口的典型实现,大多数时候Set集合都使用这个实现...

2023-02-11 · 4 min · 1766 words · luolin

Java8 Stream

java Stream是什么 首先,我们来看下java怎么描述Stream的: A sequence of elements supporting sequential and parallel aggregate operations. 其实学习stream之前我以为stream式很难的,...

2023-02-11 · 6 min · 2894 words · luolin

Java8 函数式编程和Lambda

lambda 初识lambda表达式 一个简单的方法,比较两个Integer: public void Test1() { Comparator<Integer> com = new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { return Integer.compare(o1, o2); } }; TreeSet<Integer> treeSet = new TreeSet<>(com); } 下面的这个方法与上...

2023-02-11 · 8 min · 3871 words · luolin