aspose file tools
The moose likes Beginning Java and the fly likes convert character to ascii and back 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 "convert character to ascii and back" Watch "convert character to ascii and back" New topic
Author

convert character to ascii and back

Tyler Jordan
Ranch Hand

Joined: Nov 17, 2003
Posts: 70
I've been trying to find a way to convert a charcter like a letter to its ascii equivalent and vice versa. Is there a method to accomplish this?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13



"char" is an integral type, so casting is sufficient. To convert from a char to an int, you don't even need that!


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: convert character to ascii and back
 
Similar Threads
any hints for creating &/or using existing UNICODE convertor/processor?
What is %3F... signs in the URL ?? urgent..
how do u convert ascii to binary?
Ascii to hex converter
Ascii to Hex