- This topic has 1 reply, 1 voice, and was last updated 19 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Archives › Computer Support › Computer Support Discussion › Java Programming Help
Hi all,
I have a small question regarding Java programming.
In Java Programming, we know that there is this method, hashCode() in String class which gives us the ASCII code of the character. Is there also any method which will return us the character as the string if we pass in its ASCII code as its arguments?
Please do let me know about it.
Thanks.
P.S: Oh nevermind.. I figured it out. If int ascii is the ascii code then,
char c = (char)ascii gives the character and
String ch = somethingString.valueOf( c ) gives the string character..
Moderators, feel free to delete this post.
Oh nevermind. I figured it out.. if int ascii is code, then
char c = (char)ascii gives the character and
String ch = somethingString.valueOf(c) returns the string character.