Android Array Total total(long[] array)

Here you can find the source of total(long[] array)

Description

total

Declaration

public static long total(long[] array) 

Method Source Code

//package com.java2s;

public class Main {
    public static long total(long[] array) {
        long total = 0;
        for (long value : array) {
            total += value;//from  ww w  .jav a 2s.  c o  m
        }
        return total;
    }
}

Related

  1. total(double[] numbers)
  2. total(float[] numbers)
  3. total(int[] numbers)