DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
hwo to create a list of 1 to n nums in java list
List<Integer> numbers = Stream.iterate(1, n -> n + 1) .limit(10) .collect(Collectors.toList());
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#hwo
#create
#list
#nums
#java
#list
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit