Basic Java converter for hex, binary, decimal, and strings