Revision as of 04:32, 23 November 2010 by Han84 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
public static int[] convertByteArrayToIntArray(byte[] data) {
	int[] result = new int[data.length];
	for (int i = 0; i < data.length; i++) {
		result[i] = data[i] & 0xFF;
	}
	return result;
}


Back to JavaHowTo

Alumni Liaison

Followed her dream after having raised her family.

Ruth Enoch, PhD Mathematics