Here you can find the source of sumIntArray(int[] a)
public static long sumIntArray(int[] a)
//package com.java2s; //License from project: Open Source License public class Main { public static long sumIntArray(int[] a) { int sum = 0; for (int i : a) { sum += i;// w w w.j a va 2 s.c o m } return sum; } }