Code example for Queue

Methods: peek

0
	        current.interrupt();
	   } 
 
	   public void unlock() { 
	     locked.set(false);
	     LockSupport.unpark(waiters.peek());
	   } 
	 } 
Connect your IDE to all the code out there  Get Codota for Java