I have an array (?) of Bytes and I want to reverse the order of them. I'm getting a NullExceptionPointer error with the following code but I don't get why it doesn't work?
Byte[] m is the thing I want to reverse.
Byte[] temp = new Byte[m.length];
int j = 0;
for (int i = m.length - 1; i < 0; i--) {
temp[j] = m[i];
j++;
}