what happens when you pass an array to a method code example
Example: passing array to function java
public int min(int [] array) {
int min = array[0];
for(int i = 0; i<array.length; i++ ) {
if(array[i]<min) {
min = array[i];
}
}
return min;
}
int minimum = min(myArray)