This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
If the byte array has the decimal representation of of a number...
If the byte array has been read from some file, you could get clever and use a ByteArrayInputStream to read bytes out of the bye array and wrap that in (decorate it with) a DataInputStream to convert the bytes to a long. Tom make the code as dense as possible, you could do it all one line:
You'll have to try/catch the IOException that the readLong() might throw. What you do in that case is up to you.