FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
functional_java/src/main/java/IterateDemo.java at main · 66-24/functional_java · GitHub
66-24
/
functional_java
Public
forked from
kousen/java_upgrade
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
functional_java
/
src
/
main
/
java
/
IterateDemo.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 398 Bytes
Breadcrumbs
functional_java
/
src
/
main
/
java
/
IterateDemo.java
Copy path
File metadata and controls
14 lines (12 loc) · 398 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
java
.
time
.
LocalDate
;
import
java
.
util
.
stream
.
Stream
;
public
class
IterateDemo
{
public
static
void
main
(
String
[]
args
) {
Stream
.
iterate
(
100
,
n
->
n
+
2
)
.
limit
(
20
)
.
forEach
(
System
.
out
::
println
);
Stream
.
iterate
(
LocalDate
.
now
(),
date
->
date
.
plusMonths
(
1
))
.
limit
(
12
)
.
forEach
(
System
.
out
::
println
);
}
}
Back
|
FazBrowse Home
|
New Git URL