Code example for ConcurrentLinkedQueue

Methods: add

0
		} 
		return size;
	} 
 
	public void put(String line) {
		this.reversedLines.add(line);
	} 
 
	public String poll() {
		return this.reversedLines.poll();
	} 
 
	public Boolean isEmpty() {
		return this.reversedLines.isEmpty();
	} 
 
	public ConcurrentLinkedQueue<String> getReversedLineMap() {
		return reversedLines;
	} 
 
Experience pair programming with AI  Get Codota for Java