If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

"".equals()

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?

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
>
>
>