Get the App
SLTechnology News&Howtos  ›  Servers  › 

A brief talk on string comparison of Yang Lei _ Northeast

Shulou Source: shulou.com Published: 2022-06-02 05:31:08 10月01日 Update

System.out.println ("str1==str2:" + (str1==str2))

Str1== > 990854726

Str2== > 990854726

Str3== > 990854726

Str4== > 990854726

/ / offset is the subscript for string manipulation

/ / split the value of the current string into an array of characters

}

= is easy to understand. Java design = = is to compare whether two objects refer to the same object.

Tags: Character string object subscript two that is array design Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Shulou Information Redmi Docker Microsoft