Java Array Sum sumaTotal(int vector[])

Here you can find the source of sumaTotal(int vector[])

Description

suma Total

License

Open Source License

Parameter

Parameter Description
vector a parameter

Return

calcula suma de numeros

Declaration

public static long sumaTotal(int vector[]) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   w  ww .  ja v  a  2 s . com
     * @param vector
     * @return calcula suma de numeros
     */
    public static long sumaTotal(int vector[]) {
        long suma = 0;
        for (int i = 0; i < vector.length; i++) {
            suma += vector[i];
        }

        return suma;
    }
}

Related

  1. sumArray(int Array[])
  2. sumArray(int[] arr)
  3. sumArray(int[] array)
  4. sumArray(short[] array)
  5. sumArrays(double[] xs1, double[] xs2)
  6. sumByte(byte[] array)
  7. sumByteArrayToLong(byte[] byteArray)
  8. sumCoefficients(float[] array)
  9. sumdiff(double[] x)