🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Byte.parseByte(String, 16) -> Error

#17032
From: Moon-Jeong, Choi
Date: Tue, 15 Dec 1998 00:00
21 lines
934 bytes
Hi to all.

I'm confused by Byte operation with hex type.
I need help.
------------------------
Byte.parseByte(data, 16);

, where String data = "79"; ---> ok!
            String data = "80"; ---> not ok!
------------------------
I've got following error message in case of data value is from "80" to "ff".

java.lang.NumberFormatException
              at java.lang.Byte.parseByte
              ....

Please tell me the reason, ...

Thanks in advance.

- Moon -
Technical Details
Message-ID: <7554ca$nva8@forums.borland.com>
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,e9c51b94c57f5cb3,start
X-Google-Attributes: gidf74b3,public
From: "Moon-Jeong, Choi" <mjchoi@star.dwt.co.kr>
Subject: Byte.parseByte(String, 16) -> Error
Date: 1998/12/15
Message-ID: <7554ca$nva8@forums.borland.com>
X-Deja-AN: 422415276
Organization: Daewoo Telecom LTD.
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language