title: How can I access a byte array as shorts in Java
body: <p>I have a an array of byte, size n, that really represents an array of short of size n/2.  Before I write the array to a disk file I need to adjust the values by adding bias values stored in another array of short.  In C++ I would just assign the address of the byte array to a pointer for a short array with a cast to short and use pointer arithmetic or use a union.</p>
  
  <p>How may this be done in Java - I'm very new to Java BTW.  </p>