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

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


Back to JavaHowTo

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn