Assume a method named printArray is defined as follows: public static void printArray(int[] numbers) { for (int i = 0; i
Posted: Fri Apr 29, 2022 6:44 am
in java thank you
Assume a method named printArray is defined as follows: public static void printArray(int[] numbers) { for (int i = 0; i < numbers.length; i++) System.out.println(numbers); } Also assume that inventory is an array of ints that has been already declared and filled with values. Write a statement that calls the printArray method, passing the inventory array as its argument.
Assume a method named printArray is defined as follows: public static void printArray(int[] numbers) { for (int i = 0; i < numbers.length; i++) System.out.println(numbers); } Also assume that inventory is an array of ints that has been already declared and filled with values. Write a statement that calls the printArray method, passing the inventory array as its argument.