I have a byte array of size 4 which I want to convert into a 4-byte int or Integer. What method should I use to do this?
I have tried:
String key = new String(bArray, 0, 3);
int result = Integer.valueOf(key).intValue();
which does not seem to work.
Any help would be appreciated.