• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert a Numeric Value into associated Character

 
Steve Dyke
Ranch Hand
Posts: 1619
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to take an encripted string of numbers and change it into readible string. This is my code which will return the correct values for each character but I don't know how to get the character associated with each value. Example 48 = 0, 54 = 5, 106 = j

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Steve Dyke:
...I don't know how to get the character associated with each value. Example 48 = 0, 54 = 5, 106 = j...

All you need to do is cast the numeric value to type char.
 
Steve Dyke
Ranch Hand
Posts: 1619
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. That works great.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic