I was using this to make a dec -> hex -> dec calculator. Now that I've finished all the coding it works, until you choose to do any basic math in the hex activity. If, for instance, you ask it to do 5 + 1, it will output 0x18p2, which is far off from 6, unless I'm missing something. The number is always in the 0x??p? format.
EDIT: I noticed that i'm sending a float to .toHexString(), and it says to use an int. I'm away from my home computer right now, but when i get back in a couple of hours i can test it with it set as an int, not a float.
EDIT2: It worked, and i have all that i want in funtionality in this program.