Skip to main content

Practice Code Structure

Section 1.29 Fill-in-the-blank

Checkpoint 1.29.1.

The function isArrayEmpty() takes an array as input and returns a boolean. Complete the function by filling in the blanks so that it returns true when the array is empty and returns false otherwise.
public static boolean isArrayEmpty(int[] arr) {
   return .......Blank......... ; 
}
Write your responses here:
Blank:
You have attempted 1 of 2 activities on this page.