Doubt in the video

In this video how mam uses the display function when it is not present?
The function is made but there is nothing inside the function.
When I put the exact function the answer comes!

Hey @kalindiyadav5
display function inside the Arrayops classScreenshot from 2020-07-21 14-19-12

public static void display(int[] arr) {
for (int i = 0; i < arr.length; i++) {
System.out.println(arr[i]);
}

This should be there ? for the function to work

@kalindiyadav5 Yes
exactly

Then how in the video the execution still comes correct?

display fun code is available .
It’s just hidden
These are available inside the display fun
for (int i = 0; i < arr.length; i++) {
System.out.println(arr[i]);

1 Like