java pass new array to method
methodName(new int[]{1, 2, 3}); // Replace int for different types
java pass new array to method
methodName(new int[]{1, 2, 3}); // Replace int for different types
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us