title: How do I print a short as an unsigned short in Java
body: <p>I have an array of short whose values range between 0 and the maximum value of a short.  I scale the data (to display it as TYPE_USHORT) so that the resulting short values range between 0 and 65535.  I need to print some of the scaled values but can't figure out how.  The data are in an array and in a BufferedImage.</p>