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

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett