Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

append element to head of array java

// using deque
Deque<String> deque = new LinkedList<>();
deque.add("two");
deque.add("one");
deque.addFirst("three");
//prints "three", "two", "one"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #element #head #array #java
ADD COMMENT
Topic
Name
8+1 =