Skip to content

java, compare two Strings #8

@linrio

Description

@linrio

In java, if we want to compare two string, such as A= 'abc' and B = 'abc', we should use:
if(A.equals(B)){} . It return true or false.
Not if(A == B) It return the whether the memory address is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions