Question: /* (1) What does the method below return if I contains [1, -1, 2]? Show a memory diagram. Ovo AWN 5 (2) What does the

/* (1) What does the method below return if I contains [1, -1, 2]? Show a memory diagram. Ovo AWN 5 (2) What does the method below return if i contains [1, 4, 2, -2, 0, -3]? 6 Show a memory diagram. 7 8 (3) Describe what the method does. 9 10 11 12 13 - public int s(int[] 1) { 14 int ml = 1[0]; 15 int m2 = 1[1]; 16 if (m1 > m2) { 17 m1 = 1[1]; 18 m2 = 1[0]; 19 } 20 21 for (int i = 2; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
