Question: Java 3/e CH21 Programming Challenge 1 Double-Ended Queue A deque (pronounced deck) is a list based-collection that allows additions and removals to take place at
Java 3/e CH21 Programming Challenge 1
Double-Ended Queue A deque (pronounced "deck") is a list based-collection that allows additions and removals to take place at both ends. A deque supports the operations addFront(x), removeFront(), addRear(x), removeRear(), size(), and empty(). Write a class that implements a deque that stores strings using a doubly-linked list that you code yourself. Demonstrate your class with a graphical user interface that allows to manipulate the deque by typing appropriate commands in a JTextField component, and see the current state of the deque displayed in a JTextArea component. Consult the documentation for the JTextArea class for methods you can use to display each item in the deque on it's own line.
java source file for
1.A Deque Class
2.A DoublyLinkedlist Class
3.A GUI that allows users to manipulate your deque GUIdeque Class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
