Article View: borland.public.jbuilder.java.language
Article #8761Re: if string is empty ?
From: Rick Ingham
Date: Fri, 02 Mar 2001 14:46
Date: Fri, 02 Mar 2001 14:46
13 lines
1602 bytes
1602 bytes
if( "".equals(param) ) ... works for both null reference and empty string. "Torsten Welches" <torsten.welches@who.cares.netcologne.de> wrote in message news:3a9f60ea$1_2@dnews... > > "stephen" <chinafax1@cmmail.com> wrote: > >if getParameter(string) // ? is empty > > assuming getParameter() returns a String reference: > String param = getParameter(string); > if (param == null || param.length() == 0) ... > > Torsten
Technical Details
Message-ID:
<WmOn6.495593$U46.14832311@news1.sttls1.wa.home.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mailReferences:
<3a9f579f_2@dnews> <3a9f60ea$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,58ba15ea8107776d X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-02 06:48:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "Rick Ingham" <rdingham@home.com> Newsgroups: borland.public.jbuilder.java.language References: <3a9f579f_2@dnews> <3a9f60ea$1_2@dnews> Subject: Re: if string is empty ? Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <WmOn6.495593$U46.14832311@news1.sttls1.wa.home.com> Date: Fri, 02 Mar 2001 14:46:14 GMT NNTP-Posting-Host: 24.11.173.110 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 983544374 24.11.173.110 (Fri, 02 Mar 2001 06:46:14 PST) NNTP-Posting-Date: Fri, 02 Mar 2001 06:46:14 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster