In java I have a four byte array that contains the representation of an integer in network byte order. How can I convert this from a byte array to an integer? For example, the byte array might contain the following hex values "00 00 ff ff" which represents 65535. Another example is the hex value "00 00 00 80" represents 128. I thnk what is making this difficult is that converting from a byte to an integer results in a signed integer not an unsigned integer.