byte[] operations in Java
<p>Let's say I have array of bytes:</p>

<pre>
byte[] arr = new byte[] { 0, 1, 2, 3, 4 };
</pre>

<p>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)?</p>

<p>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).</p>

<p>Thanks!</p>
