摘要:
1.创建Stream create Stream from Collections; create Stream from values; create Stream from Arrays; craeate Stream from files; craeate Stream from functi 阅读全文
摘要:
一、Stream介绍 现在有这样的需求:有个菜单list,菜单里面非常多的食物列表,只选取小于400卡路里的并且按照卡路里排序,然后只想知道对应的食物名字。 代码: package com.cy.java8; public class Dish { private final String name 阅读全文