Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ConcurrentLinkedQueue; public class ConcurrentLinkedQueueRemoveExample3 { public static void main(String[] args) { ConcurrentLinkedQueue
queue = new ConcurrentLinkedQueue
(); queue.add(12); queue.add(98); queue.add(122); queue.add(102); queue.add(112); System.out.println("Elements in queue : "+queue); queue.remove(null); } }
Output