Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java How to use Deque?

// Array implementation of Deque
Deque<String> animal1 = new ArrayDeque<>();

// LinkedList implementation of Deque
Deque<String> animal2 = new LinkedList<>();
 
PREVIOUS NEXT
Tagged: #Java #How
ADD COMMENT
Topic
Name
1+7 =