After the following code runs, how many items would the list contain?

List<Boolean> list = new ArrayList<Boolean>();
list.add(true);
list.add(true);
list.add(true);
list.remove(0);
list.add(false);
3
  • 4
  • 5
  • 2

There are no hints for this question