🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Integer Decode Exception

#19474
From: David Gordon
Date: Tue, 27 Jan 1998 00:00
29 lines
1416 bytes
John,

Thanks for the help.  I did as you suggested and it worked.  I now have
another question I forgot to ask.

Shown below is the code fragment of the loop I am processing.

            ZipStringLow = new String(ZipCodeRangeLow);
            Low = Low.decode(ZipStringLow);
            ZipCodeLow = Low.intValue() * 100;
            ZipCodeFile.read();
            ZipCodeFile.read(ZipCodeRangeHigh);
            ZipStringHigh = new String(ZipCodeRangeHigh);
            High = High.decode(ZipStringHigh);
            ZipCodeHigh = (High.intValue() * 100)+99;

My xxx.decode's are working fine until they encounter a value of "069".
This causes a java.lang.NumberFormatException: 69.  The stack print is as
follows:

   The number exception
  java.lang.Integer.parseInt
  java.lang.Integer.valueOf
  java.lang.Integer.decode.

Any help would be appreciated.  Thanks for your help.

David
Technical Details
Message-ID: <6aluh1$sic13@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6ajane$rk210@forums.borland.com> <6alcfi$sd812@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,405d87fec8049c8d
X-Google-Attributes: gidf74b3,public
From: "David Gordon" <dgordon@microdsi.net>
Subject: Integer Decode Exception
Date: 1998/01/27
Message-ID: <6aluh1$sic13@forums.borland.com>
X-Deja-AN: 319828745
References: <6ajane$rk210@forums.borland.com> <6alcfi$sd812@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.jbuilder.java.language