code: public static int sum (int[] list)
      {
          int total = 0, lsize = list.length;
          for (int ii = 0; ii < lsize; ii++) {
              total += list[ii];
          }
          return total;
      }
docs: Returns the total of all of the values in the list.