Problem:
Questio- Write java code to implement a deque with a header as a circular doubly-linked list. Include code for Nodes. Include all relevent methods. Do not use getter and setter methods to add or remove from the front or rear rather(actually reset the constructors) within those methods instead.
Please describe the code with the help of comments.