for (int i = 1; i < end; i++) {
for (int i = 0; i < end; i++) {
    protected String getHeader(byte[] data) {        StringBuffer patchstring = new StringBuffer("F0");        int end = Math.min(16, data.length);        for (int i = 1; i < end; i++) {            if ((int) (data[i] & 0xff) < 0x10)                patchstring.append("0");            patchstring.append(Integer.toHexString((int) (data[i] & 0xff)));        }        return patchstring.toString();            }