Here you can find the source of checkSum(byte abyte0[])
public static int checkSum(byte abyte0[])
//package com.java2s; //License from project: Apache License public class Main { public static int checkSum(byte abyte0[]) { int i = 0; for (int j = 0; j < abyte0.length; j++) i += abyte0[j] & 255;/*from w ww .j a v a 2s . c o m*/ return i; } }