I have an int value, say 68, and I want to turn it into the char "a".
I tried
char c = new char(68);
Is it a method in the Integer class. Any help would be appreciated.
Printable View
I have an int value, say 68, and I want to turn it into the char "a".
I tried
char c = new char(68);
Is it a method in the Integer class. Any help would be appreciated.
try thisThat gets an integer value and casts it into a char.Code:int myInt = 68;
char myChar = (char)myInt;
Thanks for the help. I'll have to try it when I get home.
That just uses the ASCII value right?
yes, as far as i know. 68 is D