File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
java8-stream/src/main/java/io/github/biezhi/java8/stream/lesson1 Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ Java8 改变了我们思考和编码的方式,在这里你可以学习到 Java
3939> 💡 点击课时标题即可查看课程大纲
4040>
4141> 💊 建议课程食用方式: x1.25倍速效果更佳
42- >
43- > ⚠️ 由于春节放假,第九课之后的内容可能在节后放送,可加入下方QQ群关注最新课程消息。
4442
4543## 相关资源
4644
Original file line number Diff line number Diff line change 22
33import io .github .biezhi .java8 .stream .Project ;
44
5- import java .util .ArrayList ;
6- import java .util .Collections ;
7- import java .util .Comparator ;
85import java .util .List ;
96import java .util .stream .Collectors ;
107
1512public class Java8 {
1613
1714 public static void main (String [] args ) {
18- List <Project > result = new ArrayList <>();
19-
20- List <Project > projects = new ArrayList <>();
15+ List <Project > projects = Project .buildData ();
2116 List <String > names = projects .stream ()
2217 .filter (p -> p .getStars () > 1000 )
2318 .map (Project ::getName )
You can’t perform that action at this time.
0 commit comments