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.
Iterating over arrays
Unveiling the array's secrets
Report a typo
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]);
}
}
}Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.