equals() prototype

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

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