str1. equals(str2); Here str1 and str2 both are the strings which are to be compared.
How can we compare two strings give an example?
str1. equals(str2); Here str1 and str2 both are the strings which are to be compared.
str1. equals(str2); Here str1 and str2 both are the strings which are to be compared.
str1. equals(str2); Here str1 and str2 both are the strings which are to be compared.