pastebin
Add a new paste
View all pastes
Change language
Dutch
English
French
Russian
menu
URL Shortener
Multiple URL shortener
browser info
Whois IP and domain lookup
Capture a Website screenshot
Disqus Chatroom
Registration
pastebin
Paste Search Dynamic
Recent pastes
person check
4 hours ago
node add
4 hours ago
ZonedDateTime
4 hours ago
nid
4 hours ago
lowestCars highestCars
4 hours ago
Entity id
4 hours ago
binkey
4 hours ago
node access
4 hours ago
node comment
4 hours ago
FastCode
4 hours ago
Arrays List
/* package whatever; // don't place package name! */
import java.util.stream.*;
import java.util.*;
/* Name of the class has to be "Main" only if the class is public. */
public
class
Main
{
public
static
void
main
(
string
[
]
args
)
{
List<List<String>> list =
arrays
.
asList
(
arrays
.
asList
(
"a"
)
,
arrays
.
asList
(
"b"
)
)
;
system
.
out
.
println
(
list
)
;
system
.
out
.
println
(
list
.
stream
(
)
.
flatMap
(
collection
::stream
)
.
collect
(
Collectors.
toList
(
)
)
)
;
}
}
Parsed in 0.014 seconds