LinkedBlockingDeque peekFirst() method in Java
The peekFirst() method of LinkedBlockingDeque returns the front element in the Deque container, but does not deletes it. It returns null if the container is empty. Syntax: public E peekFirst() Parameters: This method does not accept any parameters. Returns: This method returns front element in the D