C
cryptogirl
Hello,
I have a question concerning byte arrays. I'm trying to initialize a
byte array from 1 to 255 by doing the following:
byte S[] = new byte [255];
for(int i=0; i<256;; i++){
S=i;
Except that every time it reaches 127 it becomes -127 and I get an
index out of bounds error. Any idea how to fix this?
Thank you
I have a question concerning byte arrays. I'm trying to initialize a
byte array from 1 to 255 by doing the following:
byte S[] = new byte [255];
for(int i=0; i<256;; i++){
S=i;
Except that every time it reaches 127 it becomes -127 and I get an
index out of bounds error. Any idea how to fix this?
Thank you