174k views
0 votes
Write the definition of a method printarray, which has one parameter, an array of ints. 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.

User Andrew Ngo
by
7.9k points

1 Answer

2 votes
public void printArray(int[] t) { for(int i = 0; i < t.length; i++) { System.out.print(t[i]); System.out.println(); } }
User Kapsi
by
7.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories