What is the output of the following code?

```
ArrayList list = new ArrayList<>();
list.add(1);
list.add(2);
list.add(3);
list.remove(2);
System.out.println(list);
```
a. [1, 2, 3]
b. [1, 2]
c. [1]
d. [1, 3]
e. [2, 3]


b

Computer Science & Information Technology

You might also like to view...

Whenever you find yourself programming the same type of behavior more than once, build a(n) ____ method with ____ parameters.

A. generic B. instance C. specific D. global

Computer Science & Information Technology

An email message can be sent from any device such as a desktop computer, portable computer, or smartphone, to anyone without an Internet connection.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

____________________ is the degree to which something meets an objective standard.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The Dir class's entries method returns the contents of the folder as an array.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology