aspose file tools*
The moose likes Java in General and the fly likes getting alphabets from ascii Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "getting alphabets from ascii" Watch "getting alphabets from ascii" New topic
Author

getting alphabets from ascii

kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
HI All
Is there any method in java which return value from ASCII.
Thanks
kundan


SCJP1.4,SCBCD,SCEA,CNA
Failures are practice shoots for success.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I'm not quite getting the question. Can you show me what you'd expect such a method to do? What would you like to provide as input and get as output?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Neeraj Dheer
Ranch Hand

Joined: Mar 30, 2005
Posts: 225
Hi!

Java uses Unicode and not ASCII. but the ASCII character set forms the first 255 characters of Unicode, so all the ASCII values remain unchanged.

You can do a simple typecast to get the value.

int a = 65;
char ch = (char)a;

will assign 'A' to ch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting alphabets from ascii