Is it possible to pass multiple numbers as a parameter for an array parameter? Just like I would with a regular int. Or does the parameter have to be a separate array that I have to create?
public static void main(String[] args) {
getIntegers(1,2,3,4,5);
}
public static void getIntegers(int[] array) {
//write whatever here
}