Code example for Queue

Methods: peek

0
	        current.interrupt();
	   } 
 
	   public void unlock() { 
	     locked.set(false);
	     LockSupport.unpark(waiters.peek());
	   } 
	 } 
Stop searching for code, let great code find you!  Add Codota to your java IDE