Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Integer to an ASCII char
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xHoly-Divinity




PostPosted: 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
Sponsor
sponsor
Saad




PostPosted: 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




PostPosted: Tue Oct 02, 2007 4:52 pm   Post subject: Re: Integer to an ASCII char

Hehe, thanks Mr. Green
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: