byte[] operations in Java
- by kape123
Let's say I have array of bytes:
byte[] arr = new byte[] { 0, 1, 2, 3, 4 };
Does platform has functions that I can use to play with this array - for example, how to invert it (get 4,3,2,1,0)? Or, how to invert part of it (2,1,0,3,4)? Get part of array (0,1,2,3)?
I know I can manually write functions but I am curious if I'm missing useful util functions in platform that I should know about (and couldn't find any useful guide using google).
Thanks!