FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java8InAction/src/main/java/lambdasinaction/chap9/Intro.java at master · java8/Java8InAction · GitHub
java8
/
Java8InAction
Public
Notifications
You must be signed in to change notification settings
Fork
2.2k
Star
3.2k
Code
Issues
18
Pull requests
7
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Java8InAction
/
src
/
main
/
java
/
lambdasinaction
/
chap9
/
Intro.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 410 Bytes
Breadcrumbs
Java8InAction
/
src
/
main
/
java
/
lambdasinaction
/
chap9
/
Intro.java
Copy path
File metadata and controls
17 lines (13 loc) · 410 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
15
16
17
package
lambdasinaction
.
chap9
;
import
java
.
util
.
Arrays
;
import
java
.
util
.
Comparator
;
import
java
.
util
.
List
;
public
class
Intro
{
public
static
void
main
(
String
...
args
){
List
<
Integer
>
numbers
=
Arrays
.
asList
(
3
,
5
,
1
,
2
,
6
);
// sort is a default method
// naturalOrder is a static method
numbers
.
sort
(
Comparator
.
naturalOrder
());
System
.
out
.
println
(
numbers
);
}
}
Back
|
FazBrowse Home
|
New Git URL