
-----------------------------------
xHoly-Divinity
Tue Oct 02, 2007 4:38 pm

Integer to an ASCII char
-----------------------------------
What is the command for converting an int, say 97, to a character, in this case 'a'. Thanks

-----------------------------------
Saad
Tue Oct 02, 2007 4:49 pm

RE:Integer to an ASCII char
-----------------------------------
Just cast it to char i.e. System.out.println((char) 97);

-----------------------------------
xHoly-Divinity
Tue Oct 02, 2007 4:52 pm

Re: Integer to an ASCII char
-----------------------------------
Hehe, thanks :mrgreen:
