Question: What element values does the array list contain after the following code is executed? int] list- (2, 18, 6,-4, 5, 1) or(int i 1:list.length; i+

What element values does the array "list contain after the following code is executed? int] list- (2, 18, 6,-4, 5, 1) or(int i 1:list.length; i+ +) istlilist[ij +(list ijlist[oJ) 1. 1 2. 6 3. 7 4 -6 list[5] i. list[o] 6.9 7. 15 list 2] 8. 27 list [3] 9 18 10. 2 12. 32
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
