Thread
:
ascii value to char
View Single Post
Apr 9th, 2006, 8:12 PM
#
2
Kaja Fumei
Hobbyist Programmer
Join Date: Oct 2005
Posts: 134
Rep Power:
4
Unlike c#, the "char" type in Java is not the same as its "Character" class. The Character class is a wrapper around the char type. All you need to do is explicitly convert int to char:
(
Toggle Plain Text
)
aChar = (char) countAscii;
aChar = (char) countAscii;
Kaja Fumei
View Public Profile
Visit Kaja Fumei's homepage!
Find More Posts by Kaja Fumei