A brief talk on string comparison of Yang Lei _ Northeast
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.