Online Java Compiler By
JavaTpoint.com
import java.util.ArrayList; import java.util.List; import java.util.concurrent.LinkedBlockingDeque; public class LinkedBlockingDequeAddAllExample4 { public static void main(String[] args) { LinkedBlockingDeque
deque = new LinkedBlockingDeque
(); List
list = new ArrayList
(); list.add(null); deque.addAll(list); System.out.println("Deque : "+deque); } }
Output