🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ASCII values

#18128
From: John Niesz
Date: Tue, 11 Aug 1998 00:00
29 lines
1218 bytes
the same method you would use for c++, namely setting a char to the value and
then creating a String with that char (or an array of char's, which seems more
useful).

for example:

int asciival=65;
char asciiletter=asciival;
//or just: char asciiletter=65;
String letterStr=new String(asciiletter);



Kevin Berry wrote:

> Hi,
>
> I need to convert values from integer to string.  The integer value is the
> "ordinal" value of the character, eg. 'A' = 65 etc.  What methods do I use
> to do this???
>
> In Delphi I'd use:
>   ord('A') to get 65
>   char(65) to get 'A'
>
> How is this done in Java?
>
> Cheers,
> Kevin.
Technical Details
Message-ID: <35CFC9E2.EA94C96@worldnet.att.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6qij5k$lmb13@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,934858092500c210
X-Google-Attributes: gidf74b3,public
From: John Niesz <sunrunner15@worldnet.att.net>
Subject: Re: ASCII values
Date: 1998/08/11
Message-ID: <35CFC9E2.EA94C96@worldnet.att.net>
X-Deja-AN: 379945038
Content-Transfer-Encoding: 7bit
References: <6qij5k$lmb13@forums.borland.com>
To: Kevin Berry <kevinbe@usa.net>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language