Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > convert ASCII to characters, help

Reply
Thread Tools

convert ASCII to characters, help

 
 
ahmed.JDev
Guest
Posts: n/a
 
      05-09-2008
how can i convert ASCII to characters,
ex. A = 65, is there a method take int such as 65 to output A ???
 
Reply With Quote
 
 
 
 
Tommaso Nolli
Guest
Posts: n/a
 
      05-09-2008
ahmed.JDev ha scritto:
> how can i convert ASCII to characters,
> ex. A = 65, is there a method take int such as 65 to output A ???


What about: System.out.println((char) 65);

Cheers,
Tommaso
 
Reply With Quote
 
 
 
 
Tom Anderson
Guest
Posts: n/a
 
      05-09-2008
On Fri, 9 May 2008, ahmed.JDev wrote:

> how can i convert ASCII to characters, ex. A = 65, is there a method
> take int such as 65 to output A ???


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

But don't let anyone catch you doing it.

tom

--
I could tell you a great many more particulars but suppose that you are
tired of it by this time. -- John Backhouse, Trainspotter Zero
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem to convert integer to ascii chars for LCD in vhdl Kenneth VHDL 2 08-20-2007 10:29 PM
Regex with ASCII and non-ASCII chars TOXiC Python 5 01-31-2007 04:48 PM
[FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127) Alextophi Perl Misc 8 12-30-2005 10:43 AM
convert from unicode to ascii (hebrew) Jon Skeet [C# MVP] ASP .Net 2 06-28-2004 12:30 PM
routine/module to translate microsoft extended ascii to plain ascii James O'Brien Perl Misc 3 03-05-2004 04:33 PM



Advertisments