Write a function that takes an array as a parameter in java code example
Example: how to take array as an argument in java
import java.util.Scanner;
public class ArraysToMethod {
public int max(int [] array) {
}
import java.util.Scanner;
public class ArraysToMethod {
public int max(int [] array) {
}