28 ConcurrentLinkedDeque
作者:
滔滔逐浪 | 来源:发表于
2020-07-24 07:59 被阅读0次package com.taotao.metithread;
import java.util.concurrent.ConcurrentLinkedDeque;
/**
*@author tom
*Date 2020/7/24 0024 7:54
*
*/
public class Test16 {
public static void main(String[] args) {
ConcurrentLinkedDeque waitThread=new ConcurrentLinkedDeque<>();
waitThread.add("mayikt");
waitThread.add("meite");
waitThread.add("xiaowei");
//队列遵循先进先出
System.out.println(waitThread.peek());
System.out.println(waitThread.size());
}
}
本文标题:28 ConcurrentLinkedDeque
本文链接:https://www.haomeiwen.com/subject/gpbdlktx.html
网友评论