Skip to main content

Practice Code Structure

Section 1.30 Fill-in-the-blank

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:
You have attempted 1 of 2 activities on this page.