jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes character function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "character function" Watch "character function" New topic

character function

Kevin Fonner

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
Dirk Schreckmann

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://aspose.com/file-tools
subject: character function
jQuery in Action, 3rd edition