Here you can find the source of sumaTotal(int vector[])
Parameter | Description |
---|---|
vector | a parameter |
public static long sumaTotal(int vector[])
//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; } }