🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: showing ascii values of a string

#18736
From: Clint Brewer
Date: Thu, 07 May 1998 00:00
21 lines
1130 bytes
wahaj@logicdomain.com wrote:
> 
> Hi,
> this should be really easy, but I must be overlooking the correct
> method,
> essentially, how can I show the ascii values of a character or a string
> in a System.out.println(...) statement?
> 
> thanks
> Wahaj Zaidi

Hello Wahaj,

  Since java uses Unicode, you would have to get the unicode value
of the char you are looking at, and then convert that to ascii.  I'm not
aware of any routines in the Java spec for doing this. Maybe if you look
on javasoft.com, you'll find more info there.

good luck,
Clint Brewer
Technical Details
Message-ID: <35529DB1.70C6@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3550FCBB.4765@logicdomain.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7a3deedb97393514
X-Google-Attributes: gidf74b3,public
From: Clint Brewer <supportinfo@borland.com>
Subject: Re: showing ascii values of a string
Date: 1998/05/07
Message-ID: <35529DB1.70C6@borland.com>
X-Deja-AN: 351338137
Content-Transfer-Encoding: 7bit
References: <3550FCBB.4765@logicdomain.com>
Mime-Version: 1.0
To: wahaj@logicdomain.com
Content-Type: text/plain; charset=us-ascii
Organization: Borland International
Newsgroups: borland.public.jbuilder.java.language