Is there a java function that sums up all of the elements of an array? because i don't want to have to write out a loop to count it or do array[1] + array[2] etc......
I'm sure there's reasoning behind it, but it seems confusing that there are both low-power and efficiency cores. What are efficiency cores, if not low-power? Maybe the computer can run in a state that draws hardly any more power than standby mode...like a tablet when idle?
Question
Internet
Is there a java function that sums up all of the elements of an array? because i don't want to have to write out a loop to count it or do array[1] + array[2] etc......
Link to comment
https://www.neowin.net/forum/topic/633412-java-sum-of-array-elements/Share on other sites
6 answers to this question
Recommended Posts