Question: Write a method named printIntArray that will accept an array of integers and print the elements from the array, one per line. Use printf and
Write a method named printIntArray that will accept an array of integers and print the elements from the array, one per line. Use printf and a right-justified field width of 5. The method should not return anything. JAVA
public static void printIntArray(int a[ ])
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
