I'm in the middle of a muddle....
I'm trying to create a small class that will give me tools to convert a
String to a string of hex numbers, then take that string of hex numbers and return to a normal string.
Here's my code:
Right now, I'm just worried about the toHexString method and the hexToString method. In my main method, I first convert with:
then I want to return to my original string with
Here's my output..
As you can see, the result from hexToString does not result in the abc123 that went in at the beginning.
I think the problem is the casting of rawInt to (char), but I don't know how to change this!
Please help.
[ May 11, 2005: Message edited by: Marcus Laubli ]