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);
+4
Answers (2)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Suppose list1 is an ArrayList and list2 is a LinkedList. Both contains 1 million double values. Analyze the following code: A: for (int i = ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » 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.