🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Converting from ASCII

#17025
From: matt lopresti
Date: Mon, 28 Dec 1998 00:00
11 lines
927 bytes
i am writing a program that takes in a phone number, and converts it to
letters, as to make the phone number easier to remember. I have taken
the phone number and converted to getBytes, this assigns the ASCII value
to the numbers, the Question is: how then do I convert it back? Here is
the code snippet:

  String phoneNumber ="6479037";
  byte[] numAsArray = phoneNumber.getBytes();

Thank you advance,
-Matt
Technical Details
Message-ID: <36880E9A.7A2C8F8@toad.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b7f932c95abe3579,start
X-Google-Attributes: gidf74b3,public
From: matt lopresti <loprestim@toad.net>
Subject: Converting from ASCII
Date: 1998/12/28
Message-ID: <36880E9A.7A2C8F8@toad.net>
X-Deja-AN: 426587954
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language