After the following code runs, would the number 5 be added to the list?

List<Integer> list = new ArrayList<Integer>();
list.add(1);
list.add(2);
list.add(3);
list.remove(0);
list.add(4);

if (list.contains(1))
{
    list.add(5);
}
No, the number 1 is not in the list so the if condition is false
  • Yes, the number 1 is in the lisst so the if condition is true

There are no hints for this question