how to print the last and the first element from a deque in java
how to print the last and the first element from a deque in java