logo

Crowdly

Which line indicate AUTOUNBOXING in the code snippet below? ArrayList<Double> g...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Which line indicate AUTOUNBOXING in the code snippet below?

ArrayList<Double> grades = new ArrayList<Double>();

grades.add(3.2); // Line 1

grades.add(2.7); // Line 2

double sum = 0.0; // Line 3

for (int i=0; i < grades.size(); i++) {

sum += grades.get(i); // Line 4

System.out.println("Sum = " + sum);

}

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on ulearn.utp.edu.my?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!