This is related to my previous posting but it is also a separate question.
What does the "" refer to in the sytax "".equals()? I know we have the
import keyword, but doesn't .equals belong to a couple of different classes?
How do you know which one it is referencing? Is the answer - by what it
is processing? If so, then why do you need the "" in front of it? The syntax
seems criptic. Any clues or am I way off base here?
Thanks again for your help!
Mark
06-30-2000, 10:44 PM
Tom Duffy
Re: "".equals()
Hello Mark:
It looks like you are comparing some String object to an empty String. In
English: If the String argument passed to the equals() method is empty,
then the method returns true - if not, equals() returns false.
HTH,
Tom Duffy
"Mark" <msorteberg@inspec.com> wrote:
>
>This is related to my previous posting but it is also a separate question.
> What does the "" refer to in the sytax "".equals()? I know we have the
>import keyword, but doesn't .equals belong to a couple of different classes?
> How do you know which one it is referencing? Is the answer - by what it
>is processing? If so, then why do you need the "" in front of it? The
syntax
>seems criptic. Any clues or am I way off base here?
>
>Thanks again for your help!
>
>Mark
>
>
>