#java##stream##distinct#
去重
视频讲解 https://www.bilibili.com/video/av77530685/
![74a1beb87f3b27308cbc5718a07216c9.png](https://i-blog.csdnimg.cn/blog_migrate/ccc2a82b6bd16955380b7417628fdf1f.jpeg)
EmployeeTestCase.java
package
BaseTest.java
package com.example.demo;
import java.util.Arrays;
import java.util.List;
public class BaseTest {
protected static final List<Employee> list = Arrays.asList(
new Employee(1, "Alex", 1000),
new Employee(2, "Michael", 2000),
new Employee(3, "Jack", 1500),
new Employee(4, "Owen", 1500),
new Employee(5, "Denny", 2000));
protected static final List<List<Employee>> listFlat = Arrays.asList(
Arrays.asList(new Employee(1, "Alex", 1000),
new Employee(2, "Michael", 2000)),
Arrays.asList(new Employee(3, "Jack", 1500),
new Employee(4, "Owen", 1500)),
Arrays.asList(new Employee(5, "Denny", 2000)));
}
关注公众号,坚持每天3分钟视频学习
![39382509788e4fbd33aaff672d73cd80.png](https://i-blog.csdnimg.cn/blog_migrate/1d2975d88a80f2a83790091be627c8a2.jpeg)