Stack
Stack<Integer> s = new Stack<>();
s.push(1);
s.pop();
s.clear();
s.peek();
s.size();
s.empty();
s.contains(1);
Queue
Queue<Integer> q = new LinkedList<>();
q.add(1);
q.offer(2);
q.poll();
q.remove();
q.clear();
q.peek();
q.size();
q.isEmpty()
q.contains("str")
Priority Queue
PriorityQueue<Integer> pq = new PriorityQueue<>();
PriorityQueue<Integer> priorityQueue = new PriorityQueue<>(Collections.reverseOrder());
pq.add(1);
pq.offer(2);
pq.poll();
pq.remove();
pq.clear();
pq.peek();
pq.isEmpty()
Deque
Deque<Integer> dq=new LinkedList<>();
dq.addFirst(1);
dq.offerFirst(1);
dq.add(1);
dq.offer(1);
dq.addLast(1);
dq.offerLast(1);
dq.removeFirst();
dq.remove();
dq.pollFirst();
dq.poll();
dq.removeLast();
dq.pollLast();
dq.getFirst();
dq.peekFirst();
dq.peek();
dq.getLast();
dq.peekLast();
dq.contain(Object o);
removeFirstOccurrence(Object o);
removeLastOccurrence(Object o);
dq.size();
HashMap
HashMap<String,Integer> map = new HashMap<>();
HashMap<String,Integer> map2 = new HashMap<>(map);
HashMap<String,Integer> map3 = new HashMap<>(10);
map.put("Java", 1);
map.put("C++", 2);
map.remove("Java");
map.clear();
map.replace("Java", 10);
map.isEmpty();
map.get("Java");
map.containsKey("Java");
map.containsValue(1);
map.keySet();
map.values();
map.getOrDefault("key", defaultValue);
ArrayList
ArrayList<String> list = new ArrayList<>();
ArrayList<String> list = new ArrayList<>(10);
list.add("a");
list.add(null);
list.add(0, "b");
list.addAll(list2);
list.remove(0);
list.clear();
list.size();
list.get(0);
list.contains("a");
list.indexOf("a");
LinkedList
LinkedList<Integer> list = new LinkedList<>();
list.addFirst(1);
list.addLast(2);
list.add(3);
list.add(1, 10);
list.removeFirst();
list.removeLast();
list.remove(1);
list.remove();
list.clear();
list.size();
list.get(0);
list.contains("a");
list.indexOf("a");