Question: 1. If nums is an ArrayList that initially holds the values [2.5, 0.5, 1.0, 3.5, 10.0], what values does nums hold after the function

1. If nums is an ArrayList that initially holds the values [2.5, 

1. If nums is an ArrayList that initially holds the values [2.5, 0.5, 1.0, 3.5, 10.0], what values does nums hold after the function call change List (nums)? public void changeList(ArrayList list) { for(int i = 0; i < list.size()%; i++) { if(list.get(i) >= 1) { list.set(i, list.get(i)/10.0); } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!