Integer to an ASCII char
Author |
Message |
xHoly-Divinity
|
Posted: 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 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Saad

|
Posted: 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); |
|
|
|
|
 |
xHoly-Divinity
|
Posted: Tue Oct 02, 2007 4:52 pm Post subject: Re: Integer to an ASCII char |
|
|
Hehe, thanks  |
|
|
|
|
 |
|
|