This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes character function Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "character function" Watch "character function" New topic
Author

character function

Kevin Fonner
Greenhorn

Joined: Sep 20, 2001
Posts: 21
Many other languages have a char() function that allow me to turn a integer value of a corresponding ascii or unicode character to an actual char. I tried just char(), but that didn't work. Anybody with an idea how I can do this??
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
hi Kevin
try to run the following coding in the main method

Actually,you can use explicit type casting in Java to do the convertion between primitive integer and character.
Hope this help


Francis Siu
SCJP, MCDBA
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
...and you may find The Character Class useful.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: character function
 
Similar Threads
Code conversion!
Convert to upper case
toCharArray()
Dereferenced Error Code
Basic Java - Please help a stressed noob with a method