Question: Extra Credit ( 1 0 points ) : Update the Deque List with the given commands. Draw a new picture for each part. a .
Extra Credit points: Update the Deque List with the given commands. Draw a new picture for each part.
a Add the following Strings to the DoubleLinkedList: "John", "Jonas", "Hans", "Jani", "Juan", "Gio", "Joao", "Jana", "Johnny", "Jon" in that order.
b addFirst "Ivan".
c addLast "Jane".
d pollLast the list.
e removeFirst the list.
This is stringto array
a Add the following Strings to the array: "John", "Juan", "Jon", "Jean", "Jonas", "Johnny",
"Joao", "Jani", "Giovanni", "Hans" in that order
b Replace index with "Ivan"
c What happens if we add "Jhon" at the end of the array?
d What happens if we add "Jan" by index what do we get?
e What happens if remove the elements in index and what do you get?
but make it with boxes
but ma
e What happens if remove the elements in index and what do you get?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
