Article View: borland.public.jbuilder.java.language
Article #17032Byte.parseByte(String, 16) -> Error
From: Moon-Jeong, Choi
Date: Tue, 15 Dec 1998 00:00
Date: Tue, 15 Dec 1998 00:00
21 lines
934 bytes
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-mailShow 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