The Javamex companion blog. This blog includes both technical articles relating to the programming information that you'll find on the Javamex site, plus information covering the IT industry more generally.
Friday, June 1, 2012
How do you convert to and from hex in Java?
A question that I've seen come up fairly regularly among beginners, and indeed among some more experienced programmers, is that of how to convert from decimal to hexadecimal and vice versa in Java. This page explains how to convert integers to/from hex in Java.