Article View: borland.public.jbuilder.java.language
Article #8249Re: Newbie problem Help
From: Roger McLitty
Date: Mon, 02 Apr 2001 11:02
Date: Mon, 02 Apr 2001 11:02
11 lines
949 bytes
949 bytes
On the string comparison, instead of using if (tempString == userSearch) use: if (tempString.equals(userSearch)) - it is annoying that it doesn't give the same results - I often use the '==' by mistake and it's the last thing I check.
Technical Details
Message-ID:
<3ac85bd0.9261947@nnrp.news.gxn.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-uk-post-01!supernews.com!xo.supernews.co.uk!not-for-mailReferences:
<tcenh9ll114k7b@corp.supernews.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,97680a906a0b92c1 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-02 04:01:41 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-uk-post-01!supernews.com!xo.supernews.co.uk!not-for-mail From: RogerMcLitty@yahoo.co.uk (Roger McLitty) Newsgroups: borland.public.jbuilder.java.language Subject: Re: Newbie problem Help Date: Mon, 02 Apr 2001 11:02:30 GMT Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3ac85bd0.9261947@nnrp.news.gxn.net> References: <tcenh9ll114k7b@corp.supernews.co.uk> X-Newsreader: Forte Free Agent 1.21/32.243 X-Complaints-To: abuse@xo.supernews.co.uk Lines: 11