Open Question: Write a Java Method?

Write a Java method call SumArray which take in an integer array arr and sum up all the values in the array by either a for loop or a while loop and return the sum.

Comments are closed.