Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reverse hashCode() method?

807603Oct 24 2007 — edited Oct 24 2007
Hey

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2007
Added on Oct 24 2007
8 comments
1,573 views