We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4ad04 commit dd6cd97Copy full SHA for dd6cd97
java8Tutorials/src/main/java/java8/stream/StreamDemo6.java
@@ -0,0 +1,27 @@
1
+package java8.stream;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
6
+public class StreamDemo6
7
+{
8
+ public static void main(String[] args)
9
+ {
10
+ List<String> list=new ArrayList<>();
11
+ list.add("one");
12
+ list.add("two");
13
+ list.add("three");
14
+ list.add("four");
15
16
+ list.forEach(System.out::println);
17
+ /*
18
+ * output
19
+ *
20
+ * one
21
+ two
22
+ three
23
+ four
24
+ */
25
26
+ }
27
+}
0 commit comments