Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

sum of all numbers in array java

int[] a = {10,20,30,40,50};
int sum = IntStream.of(a).sum();
System.out.println("The sum is " + sum);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #numbers #array #java
ADD COMMENT
Topic
Name
9+4 =