Porównanie Java

/*
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.
Angry Anteater