After the following code runs, would the number 5 get added to the ArrayList?

ArrayList numList = new ArrayList();
numList.add(1);
numList.add(2);
numList.add(3);
numList.remove(0);
numList.add(4);

if(numList.contains(1)){
  numList.add(5);
}
No - the number 1 is not in the ArrayList so the if statement would not trigger
  • Yes - the number 1 is in the ArrayList so the if statement would trigger

There are no hints for this question