Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

scanner.nextInt stream api java

int[] numbers = IntStream.generate(() -> scan.nextInt()).limit(N).toArray();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stream #api #java
ADD COMMENT
Topic
Name
9+1 =