🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

null value

#8769
From: stephen
Date: Sat, 03 Mar 2001 07:18
11 lines
1068 bytes
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))
   System.out.println("RMBSum null");
else
   System.out.println(RMBSum);

Thanks
Stephen
Technical Details
Message-ID: <3aa09b70_2@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!202.105.37.68

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,1174403afea3aa39,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-02 23:40:07 PST
From: "stephen" <chinafax1@cmmail.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: null value
Date: Sat, 3 Mar 2001 15:18:33 +0800
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 202.105.37.68
Message-ID: <3aa09b70_2@dnews>
X-Trace: 2 Mar 2001 23:21:20 -0800, 202.105.37.68
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!202.105.37.68