🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: null value

#8777
From: Dave Bird
Date: Sat, 03 Mar 2001 14:24
16 lines
1433 bytes
In article <3aa09b70_2@dnews>, stephen <chinafax1@cmmail.com> writes
>How to get a int value and how to check if it is null?
>
>int RMBSum=Integer.parseInt(getParameter("RMBSum"));
>
>if ((RMBSum==null) && (RMBSum.intValue()==0))
                       ######################

 Will it have a correct intValue at all?  surely NULL
 results from trying to parse %%$!&?#: or the like (mot an integer)
 into a numerical value.


-- 
   ^-^-^-@@-^-;-^   http://www.xemu.demon.co.uk/
        (..)__u     news:alt.smoking.mooses
Technical Details
Message-ID: <YIRU3NAH6Po6Ewjz@xemu.demon.co.uk>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!dispose.news.demon.net!news.demon.co.uk!demon!xemu.demon.co.uk!dave
References: <3aa09b70_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1174403afea3aa39
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-03 12:54:07 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!dispose.news.demon.net!news.demon.co.uk!demon!xemu.demon.co.uk!dave
From: Dave Bird <dave@xemu.demon.co.uk>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: null value
Date: Sat, 3 Mar 2001 14:24:07 +0000
Organization: none
Message-ID: <YIRU3NAH6Po6Ewjz@xemu.demon.co.uk>
References: <3aa09b70_2@dnews>
NNTP-Posting-Host: xemu.demon.co.uk
X-NNTP-Posting-Host: xemu.demon.co.uk:158.152.196.209
X-Trace: news.demon.co.uk 983652738 nnrp-02:17698 NO-IDENT xemu.demon.co.uk:158.152.196.209
X-Complaints-To: abuse@demon.net
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 5.00 U <dQumtnY$x4rJ2u5tL5fS$n2vuP>
Lines: 16