M
Matt
I know when we do Java string comparision, we should use equals method.
But how about compare with an empty string? Is it an exception? or we
should still use equals method?
I saw people do both, but I don't know if == is ok?
s.equals("")
s == ""
please advise. thanks!!
But how about compare with an empty string? Is it an exception? or we
should still use equals method?
I saw people do both, but I don't know if == is ok?
s.equals("")
s == ""
please advise. thanks!!