📅  最后修改于: 2022-03-11 14:52:26.833000             🧑  作者: Mango
/*
In Java, string equals() method compares the two given strings based
on the data/content of the string. If all the contents of both the
strings are same then it returns true. If any character does not match,
then it returns false.
*/
//Syntax:
str1.equals(str2);
//Here str1 and str2 both are the strings which are to be compared.