byte Array element Replace - Android File Input Output

Android examples for File Input Output:Byte Array

Description

byte Array element Replace

Demo Code


//package com.java2s;

public class Main {

    public static byte[] byteArrayReplace(byte[] a, byte[] b, int start,
            int len) {
        for (int i = start, j = 0; j < len; i++, j++) {
            a[i] = b[j];/*from w  w  w.  j ava 2s  .co  m*/
        }

        return a;
    }
}

Related Tutorials