SyntaxFix
Write A Post
Hire A Developer
Questions
As often, guava has what you need.
To go from byte array to int: Ints.fromBytesArray, doc here
Ints.fromBytesArray
To go from int to byte array: Ints.toByteArray, doc here
Ints.toByteArray