Unveiling the array's secrets

Report a typo

You have a program designed to print every element in an array without errors. Fill in the blanks to complete the function that handles this task.

Fill in the gaps with the relevant elements
public class ArrayPrinter {
    public static void safeArrayPrint([] arr) {
         (int i = 0; i < arr.; i++) {
            System.out.println(arr[i]);
        }
    }
}
intforsizelengthwhilefloat

Create a free account to access the full topic