IncorrectCorrectNo Answer was selectedInvalid Answer
Fill in the missing code in the following code block to create an algorithm that makes all odd numbers in an ArrayList negative. Assume the ArrayList contains only positive numbers originally.
ArrayList<Integer> array =newArrayList<Integer>();
array.add(1);
array.add(2);...for(int i =0; i < array.size(); i++){if(/* LINE 1 */){
array.set(/* LINE 2 */);}}