This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
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://aspose.com/file-tools
 
subject: character function