Create ArrayDeque named queue and enqueue the following four numbers 2, 0, 1, 7.
The code for displaying the queue is already written.
Create ArrayDeque named queue and enqueue the following four numbers 2, 0, 1, 7.
The code for displaying the queue is already written.
Sample Input 1:
Sample Output 1:
[2, 0, 1, 7]Create a free account to access the full topic