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!
Doubt in the video
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
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