Question: What elements does the array list contain after the following code is executed? int [] list ={2,18,6,4,5,1}; for (int i=0;i

What elements does the array list contain after the following code is executed? int [] list ={2,18,6,4,5,1}; for (int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
