https://wikimass.com/java/sum-of-array