Java Array Sum sumByte(byte[] array)

Here you can find the source of sumByte(byte[] array)

Description

sum Byte

License

BSD License

Declaration

public static final int sumByte(byte[] array) 

Method Source Code

//package com.java2s;
/**// w  w  w  . ja v a 2  s .  c o  m
 * This class is part of JCodec ( www.jcodec.org ) This software is distributed
 * under FreeBSD License
 * 
 * @author Jay Codec
 * 
 */

public class Main {
    public static final int sumByte(byte[] array) {
        int result = 0;
        for (int i = 0; i < array.length; i++) {
            result += array[i];
        }
        return result;
    }
}

Related

  1. sumArray(int[] arr)
  2. sumArray(int[] array)
  3. sumArray(short[] array)
  4. sumArrays(double[] xs1, double[] xs2)
  5. sumaTotal(int vector[])
  6. sumByteArrayToLong(byte[] byteArray)
  7. sumCoefficients(float[] array)
  8. sumdiff(double[] x)
  9. sumDigits(final long value, final int... digits)