Reverse hashCode() method?
807603Oct 24 2007 — edited Oct 24 2007Hey
I'm quite new to Java and programming in general, and have a (I think) pretty simple problem.
When i have a char, i can use the .hashCode() method to convert it to an integer, representing it's coresponding unicode value, if I've understood it correctly. What I want to do is convert a variable integer to it's coresponding char value.
E.g. let's say i have a variable integer called index.
The user is asked to type some integer value, which is scanned and saved in the field index.
I now want to print out the coresponding char value.
How do I do this?
Help please ;)
Thanks,
Rasmus, Denmark
Edited by: Rasmus_D on Oct 24, 2007 4:36 PM