Your right of course.  I did not look to see that equals was specified for
the String class the way that it is.  Big foot in the mouth.

-----Original Message-----
From: Kurt Bernhard Pruenner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re: getParameter is NOT a string?


Brett Bergquist wrote:
> Actually the test that you want is:
>
>         if (user.compareTo("admin") == 0) {
>                 ...
>         }

And how is this any different from using "if (user.equals("admin"))"?

--
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp
BBS:
http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh
[EMAIL PROTECTED]
...........It might be written "Mindfuck", but it's spelt
"L-A-I-N"...........
np: Leak - Frilage (Leaked)

Reply via email to