• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

character function

 
Kevin Fonner
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 867
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and you may find The Character Class useful.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic