Java Array Sum sum(byte[] array, int offset, int size)

Here you can find the source of sum(byte[] array, int offset, int size)

Description

sum

License

Apache License

Declaration

public static int sum(byte[] array, int offset, int size) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int sum(byte[] array, int offset, int size) {
        int sum = 0;
        for (int i = offset; i < offset + size; i++)
            sum ^= array[i];//w  w  w .  j a  v  a 2  s. co m
        return sum;
    }
}

Related

  1. sum( int[] a)
  2. sum(byte... bytes)
  3. sum(byte[] array)
  4. sum(byte[] array)
  5. sum(byte[] array, int offset, int size)
  6. sum(byte[] in, byte[] gamma)
  7. sum(double a[], int begin, int end)
  8. sum(double values[], int size)
  9. sum(double... a)