Suppose list1 is an ArrayList and list2 is a LinkedList. Both contains 1 million double values. Analyze the following code:

A: for (int i = 0; i < list1. Size(); i++)

sum += list1. Get(i);

B: for (int i = 0; i < list2. Size(); i++)

sum += list2. Get(i);

A. Code fragment A runs faster than code fragment B.

B. Code fragment B runs faster than code fragment A.

C. Code fragment A runs as fast as code fragment B