当前位置:网站首页>Lambda quick start
Lambda quick start
2022-06-12 00:42:00 【Leon_ Jinhai_ Sun】
demand
We can call getAuthors Method to get the collection of Writers . Now you need to print all the documents that are younger than 18 The name of the writer , And pay attention to weight removal .
Realization
// Print all children younger than 18 The name of the writer , And pay attention to weight removal
List<Author> authors = getAuthors();
authors.
stream()// Convert a collection into a stream
.distinct()// First remove the duplicate writers
.filter(author -> author.getAge()<18)// The screening age is less than 18 Of
.forEach(author -> System.out.println(author.getName()));// Traverse print name 边栏推荐
- Share an open source, free and powerful video player library
- "Failure" of the prospectus of Laowang: Laowang made its first dash for listing in Hong Kong, and the turnover rate continued to decline
- Characteristics of JS logical operators
- Web keyboard input method application development guide (2) -- keyboard events
- Creating and running JMeter performance test scenarios
- LabVIEW Arduino电子称重系统(项目篇—1)
- 组态王如何利用无线Host-Link通信模块远程采集PLC数据?
- Hertzbeat v1.0 beta. 4 release, easy-to-use and friendly monitoring alarm system
- C语言练习:ESP32 BLE低功耗蓝牙服务端数据打包和客户端数据解析
- repeat_ L2-007 family property_ set
猜你喜欢

Web keyboard input method application development guide (2) -- keyboard events

Explore table component virtualization

How to send Apple phone WPS files to QQ mailbox

Visitors push e-commerce express without tossing about personal payment codes

Industrial control system ICs

The latest report of Xinsi technology shows that 97% of applications have vulnerabilities

干货|一次完整的性能测试,测试人员需要做什么?

How to make scripts executable anywhere

win10文件夹状态红叉表示的是什么

在玻璃上构建电路
随机推荐
How to make scripts executable anywhere
The time selector style is disordered and the middle text is blocked
验证码是自动化的天敌?看看阿里P7大神是怎么解决的
ironSource&nbsp; New functions are released, and developers can adjust advertising strategies in real time in the same session
C language preprocessing instructions - learning 21
Sword finger offer 09 Implementing queues with two stacks
The long polling processing mechanism of the service end of the # yyds dry goods inventory # Nacos configuration center
Big sword
Argodb 3.2 of star ring technology was officially released to comprehensively upgrade ease of use, performance and security
接口自动化测试很难?带你从0到1入门接口自动化测试【0基础也能看懂系列】
Hertzbeat v1.0 beta. 4 release, easy-to-use and friendly monitoring alarm system
七个需要关注的测试自动化趋势
Explore table component virtualization
DevOps落地实践点滴和踩坑记录-(1)
一、Flutter 入门学习写一简单客户端
Dry goods | what do testers need to do for a complete performance test?
KV storage separation principle and performance evaluation of nebula graph
Zhangxiaobai takes you to install MySQL 5.7 on Huawei cloud ECS server
MySQL basic tutorial -- MySQL transaction and storage engine
Investment analysis and prospect Trend Research Report of global and Chinese cyclopentanyl chloride industry 2022-2028