🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Converting ASCII strings

#20048
From: Brian Burton
Date: Thu, 06 Nov 1997 00:00
28 lines
1282 bytes
You could use String.getBytes() to get the String's contents as an array of
bytes.  Then modify the array and create a new string from the array.  Check out
the documentation for java.lang.String for more details.

All the best,
++Brian

Eran Steiner 'Milk' wrote:
> 
> Hi !
> 
> I have a problem:
> I have a string and I need to change all the charaters inside it, and
> add to their ASCII values 3:
> like if I have a string "ABCD" it'll be changed to "DEFG".
> 
> How can I do it ?
> 
> Thanks Forward,
> 
> Eran Steiner <eran@mofet.macam98.ac.il>
> Visit my ICQ list at http://icqisrael.home.ml.org/

-- 
Brian Burton                        Custom Software Development
Burton Computer Corporation         Java, C++, Orbix, Tuxedo
http://www.burton-computer.com      OO Consulting and Mentoring
Technical Details
Message-ID: <34620788.30CDA9FC@burton-computer.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <346149BB.2D95F747@mofet.macam98.ac.il>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f18a3d8adbd13f9f
X-Google-Attributes: gidf74b3,public
From: Brian Burton <brian.burton@burton-computer.com>
Subject: Re: Converting ASCII strings
Date: 1997/11/06
Message-ID: <34620788.30CDA9FC@burton-computer.com>
X-Deja-AN: 287466120
References: <346149BB.2D95F747@mofet.macam98.ac.il>
Organization: Burton Computer Corporation
Newsgroups: borland.public.jbuilder.java.language