🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #261

Re: Convert ASCII Code to String

#261
From: Gillmer J. Derge [TeamB]
Date: Mon, 25 Sep 2006 04:29
13 lines
1272 bytes
Bernie Hunt wrote:
> I've got an int that holds the ASCII code for a charactor and I need to 
> convert that to the char represented by that ASCII code. Example;
> 
> int myInt
> char myChar
> myInt = 68 // Ascii code for "D"
> myChar = needs to be a D

myChar = (char)myInt;

-- 
Gillmer J. Derge [TeamB]
Technical Details
Message-ID: <45175b44$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <Xns98477E3712C1Bbhuntoptonlinenet@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: Mon, 25 Sep 2006 00:29:58 -0400
From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Convert ASCII Code to String
References: <Xns98477E3712C1Bbhuntoptonlinenet@207.105.83.66>
In-Reply-To: <Xns98477E3712C1Bbhuntoptonlinenet@207.105.83.66>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.149.56.198
Message-ID: <45175b44$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1159158596 24.149.56.198 (24 Sep 2006 21:29:56 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail