Ask Question
5 September, 01:55

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.

+3
Answers (1)
  1. 5 September, 02:16
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers