Article View: borland.public.jbuilder.java.language
Article #16678Parsing String to Integer
From: Ginny Cheah
Date: Thu, 21 Jan 1999 00:00
Date: Thu, 21 Jan 1999 00:00
10 lines
813 bytes
813 bytes
Hello I used parseInt(String) method from Class java.lang.Integer to cast a string as a signed decimal Integer, however the "0" is being parsed as blank (nothing). Is it possible keep the "0" as Integer 0 while using this method or is there better way of doing it? Thanks in advance.
Technical Details
Message-ID:
<36A76DBD.3F6735BD@consultec.de>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,256c646a4b3cb6c9,start X-Google-Attributes: gidf74b3,public From: Ginny Cheah <gc@consultec.de> Subject: Parsing String to Integer Date: 1999/01/21 Message-ID: <36A76DBD.3F6735BD@consultec.de> X-Deja-AN: 435304698 Content-Transfer-Encoding: 7bit X-Accept-Language: en,en-GB Content-Type: text/plain; charset=us-ascii Organization: Consultec AG Mime-Version: 1.0 Reply-To: gc@consultec.de Newsgroups: borland.public.jbuilder.java.language