Computer Science Canada

Integer to an ASCII char

Author:  xHoly-Divinity [ Tue Oct 02, 2007 4:38 pm ]
Post subject:  Integer to an ASCII char

What is the command for converting an int, say 97, to a character, in this case 'a'. Thanks

Author:  Saad [ Tue Oct 02, 2007 4:49 pm ]
Post subject:  RE:Integer to an ASCII char

Just cast it to char i.e. System.out.println((char) 97);

Author:  xHoly-Divinity [ Tue Oct 02, 2007 4:52 pm ]
Post subject:  Re: Integer to an ASCII char

Hehe, thanks Mr. Green


: