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.

No comments: