Question: Given the following method, and an one dimensional int array- numbers, if call testMethod(numbers) returns a value 8, what information can we obtain from
Given the following method, and an one dimensional int array- numbers, if call testMethod(numbers) returns a value 8, what information can we obtain from the return value? public static int testMethod (int[] array) { int var=-1; for (int i=0; i
Step by Step Solution
3.46 Rating (149 Votes )
There are 3 Steps involved in it
The given testMethod takes an input onedimensional integer array array and iterates thro... View full answer
Get step-by-step solutions from verified subject matter experts
