0

I have a structure where there are 4 bytes that points out where should I read next. The bytes seems to be: 50, -121, 5, 0 (just a sample)

I've been searching about how to convertt byte[] to int but not found any solution.

SidFerreira
  • 551
  • 3
  • 20
  • Have a look at this question: http://stackoverflow.com/questions/5399798/byte-array-and-int-conversion-in-java – micha Oct 24 '13 at 13:03

1 Answers1

4
ByteBuffer.wrap(bytes).getInt();
Jeffrey Klardie
  • 3,020
  • 1
  • 18
  • 23