Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Example of ArrayDeque

import java.util.ArrayDeque;

class Main {
    public static void main(String[] args) {
        ArrayDeque<String> fruits= new ArrayDeque<>();

        // Using add()
        fruits.add("Apple");

        // Using addFirst()
        fruits.addFirst("Banana");

        // Using addLast()
        fruits.addLast("Mango");
        System.out.println("ArrayDeque: " + fruits);
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: Small Change 
Java :: Algorithms - decision 
Java :: springBoot Disable a Specific Auto-Configuration 
Java :: fibonacci java 
Java :: android java random fragment on create 
Java :: check whether an entry in hashmap is deleted in java 
Java :: hibernate getList of a table 
Java :: google intent for directions 
Java :: java program for calendar using applet 
Java :: system program j 
Java :: origin model color 
Java :: find the length of jtextfeild in java 
Java :: fibonacci series 
Java :: replace range from array java 
Java :: contoh object dalam oop java 
Java :: java map get value 
Java :: Caused by: java.lang.ClassNotFoundException: 
Java :: java importing 
Java :: java anonymous function 
Java :: print treeset java 
Java :: java jcombobox selected item changed 
Java :: java float precision 
Java :: convert array to arraylist 
Java :: polimorfismo java ejemplo 
Java :: spring mock Streamble of object 
Sql :: sql developer search all packages for text 
Sql :: select not matching data with join table 
Sql :: postgres get all tables in schema 
Sql :: print in pl sql 
Sql :: postgresql add enum value 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =