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