Java byte array manipulation?

You access an array like so: y = ai You find the length of an array like so: len = a. Length You can isolate the last 4 bits of an integer like so: y = x & 0xF These should be sufficient to construct the code that you need.

You access an array like so: y = ai; You find the length of an array like so: len = a. Length; You can isolate the last 4 bits of an integer like so: y = x & 0xF; These should be sufficient to construct the code that you need.

Thanks. I follow the first two, thats great. I now have the last byte.

Not sure how the third bit works though. What does the 0xF do? – Joseph Flynn Nov 15 at 22:11 1 @Joseph: The final statement is applying a bitmask.0xF is a hexadecimal constant with the 4 lsbs set.

– Oli Charlesworth Nov 15 at 22:15.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions