Ask Question
5 January, 05:44

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.

+4
Answers (1)
  1. 5 January, 09:20
    0
    void printArray (int a[ ]) {

    int i; for (i = 0; i < a. length; i++) {

    System. out. print (a[i]);

    System. out. println (); }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “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 ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers