Android examples for java.lang:array calculation
get Array Sum
//package com.java2s; public class Main { public static int getArraySum(int... i) { int sum = 0; for (int j = 0; j < i.length; j++) { sum += i[j];//from w w w.j a v a 2 s . c o m } return sum; } }