equals() prototype

use: return true if two strings are equal else false. Example: If str1 =
"hello" and str2 = "hello" then str1.equals(str2) will return true.
equals() definition

use: return true if two strings are equal else false. Example: If str1 =
"hello" and str2 = "hello" then str1.equals(str2) will return true.