Give the values of the List attributes after each of the following operations.

```
List ex = new LinkedList();
ex.add("Pooh");
ex.add(1, "Tigger");
ex.add(1, "Piglet");
ex.add(0, "Owl");
List exView = ex.sublist(1,4);
exView.clear();

```


```
List ex = new LinkedList();
size = 0, head = tail = null

ex.add("Pooh");
size = 1, head = tail =

ex.add(1, "Tigger");
size = 2, head = “Pooh” tail = “Tigger”

ex.add(1, "Piglet");
size = 3, head = “Pooh” tail = “Tigger”

ex.add(0, "Owl");
size = 4, head = “Owl” tail = “Tigger”

List exView = ex.sublist(1,4);
size = 4, head = “Owl” tail = “Tigger”
the sublist encompases “Pooh”, “Piglet” and “Tigger”

exView.clear();
size = 1, head = tail = “Owl”

```

Computer Science & Information Technology

You might also like to view...

List the and describe four categories into which classes fall.

What will be an ideal response?

Computer Science & Information Technology

A memory module lists its CL as 9-9-9-24. What is its CL rating?

A) 9 B) 24 C) 51 D) Cannot be determined

Computer Science & Information Technology

How can an investigator minimize any challenges an opposing attorney could make to discredit the investigator's report or testimony?

a. Provide only nonspecific conclusions in written reports. b.Include as much detail as possible, even when it is irrelevant to the issue c. Avoid using technical terms when a lay term can convey a similar meaning d. Be as thorough as possible during the forensic examination

Computer Science & Information Technology

The World Wide Web traces its origin to a proposal made by Tim Berners-Lee in 1996.

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

Computer Science & Information Technology