Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java stream loop

IntStream.range(0, numbers.length)
  .forEach(index -> {
    doubleNumbers[index] = numbers[index] * 2;
    tripleNumbers[index] = numbers[index] * 3;
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #stream #loop
ADD COMMENT
Topic
Name
8+5 =