🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #663

Re: int or float

#663
From: Tor Iver Wilhelmsen (TeamB)
Date: Fri, 11 Apr 2003 06:14
5 lines
1090 bytes
"RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw> writes:

> How can I determine a string is integer or floating?

Try Integer.parseInt() and catch any NumberFormatException thrown.
Technical Details
Message-ID: <u65pl1rxk.fsf@ergo.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e959322@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,e40b384e2aa5f880
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-04-10 23:17:46 PST
Sender: towi@SDSA3850
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: int or float
References: <3e959322@newsgroups.borland.com>
From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB))
Date: 11 Apr 2003 08:14:47 +0200
Message-ID: <u65pl1rxk.fsf@ergo.no>
Lines: 5
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 139.105.4.245
X-Trace: newsgroups.borland.com 1050041686 139.105.4.245 (10 Apr 2003 23:14:46 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail