Checkpoint 1.30.1.
The function
areStringsEqual()
takes two String inputs and returns a boolean. Complete the function by filling in the blanks so that when the two Strings are the same it returns true. Otherwise, it returns false. You can compare String values using equals() method.public static boolean areStringsEqual(String str1, String str2) {
return .......Blank......... ;
}
Write your responses here:
Blank: