Article View: borland.public.jbuilder.java.language
Article #257Re: Convert ASCII Code to String
From: Michael R. Rottmeier
Date: Sat, 23 Sep 2006 17:27
Date: Sat, 23 Sep 2006 17:27
48 lines
2363 bytes
2363 bytes
Hi Bernie,
In Delphi we have the function Chr() which returns the string of a given
decimal code point, so Chr(68) would return "D".
Have you looked if Java does offer something similar?
Best wishes,
Michael
Bernie Hunt schrieb:
> Mehmet,
>
> Thanks for the quick reply. I take it there is no way to directly convert
> without the over head of a table? There is a way to get the ASCII code
> from a charactor in Java, I figured there must be a way to turn an ASCII
> code back into a charactor.
>
> Bernie
>
>
>
> "Mehmet F. Erten" <mehmet_erten@mblsoft.com> wrote in
> news:45156632@newsgroups.borland.com:
>
>> Subject: Re: Convert ASCII Code to String
>> From: "Mehmet F. Erten" <mehmet_erten@mblsoft.com>
>> Newsgroups: borland.public.jbuilder.java.language
>> Reply-To: "Mehmet F. Erten" <mehmet_erten@mblsoft.com>
>>
>> String [] asciiCharacters = new String [] {65 other-values, "A", "B",
>> "C", "D");
>>
>> 0 is the first value (starting) in the array.....
>> fist array value can be a blank....
>>
>> myChar = asciiCharacters[myInt];
>>
>> you can use the following sites to build your asciiCharacters
>>
>> http://www.walthowe.com/navnet/faq/ascitabl.html
>>
>> http://www.newebgroup.com/academy/tables/ascii.htm
>>
>>
>>
>>
>>
>
Technical Details
Message-ID:
<45156e6d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns98477E3712C1Bbhuntoptonlinenet@207.105.83.66> <45156632@newsgroups.borland.com> <Xns984785DF8DF20bhuntoptonlinenet@207.105.83.66>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,2160c0f07f672f04 X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 23 Sep 2006 19:27:09 +0200 From: "Michael R. Rottmeier" <michael.rottmeier@web.de> User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Convert ASCII Code to String References: <Xns98477E3712C1Bbhuntoptonlinenet@207.105.83.66> <45156632@newsgroups.borland.com> <Xns984785DF8DF20bhuntoptonlinenet@207.105.83.66> In-Reply-To: <Xns984785DF8DF20bhuntoptonlinenet@207.105.83.66> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 88.64.49.201 Message-ID: <45156e6d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159032429 88.64.49.201 (23 Sep 2006 10:27:09 -0700) Lines: 48 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail