Computers and Technology
HTSmith
2020-11-08 08:13:42
Write the definition of a method printarray, which has one parameter , an array of int s. the method does not return a value . the method prints out each element of the array , on a line by itself, in the order the elements appear in the array , and does not print anything else.
ANSWERS
njdnewmoon
2020-11-08 12:55:51

void printArray(int a[ ]) {  int i;   for (i = 0; i < a.length; i++){   System.out.print(a[i]);  System.out.println();   }  }

ADD ANSWER