Skip to content

Commit 98cded3

Browse files
committed
Sincronización automática: 2026-03-19 21:29
1 parent 458cc15 commit 98cded3

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

desktop.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[.ShellClassInfo]
2+
IconResource=C:\WINDOWS\System32\SHELL32.dll,1
3+
[ViewState]
4+
Mode=
5+
Vid=
6+
FolderType=Generic
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package quick;
2+
3+
import java.util.stream.Stream;
4+
5+
public class AppStreams {
6+
7+
public static void main(String[] args) {
8+
9+
Stream.of(1, 2, 3, 4) //Creates a stream containing the integers: 1, 2, 3, 4.
10+
.filter(e -> e > 2) //Filters the stream to keep only the numbers greater than 2.
11+
.map(e -> e * 10) //Transforms the remaining numbers by multiplying each one by 10.
12+
.forEach(System.out::println); //Iterates over the final results and prints them to the console.
13+
14+
}
15+
16+
}

0 commit comments

Comments
 (0)