Skip to content

Commit 5f971ad

Browse files
committed
refine
1 parent b057e6d commit 5f971ad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎code/01.Threads/src/com/jackson0714/passjava/threads/QueueDemo.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ public static void main(String[] args) {
4646
concurrentLinkedDeque.addLast(buildingBlock2);
4747
//结果:顺序:三角形、四边形
4848

49+
ArrayBlockingQueue arrayBlockingQueue = new ArrayBlockingQueue(100, true);
50+
arrayBlockingQueue.add(buildingBlock1);
51+
arrayBlockingQueue.add(buildingBlock2);
52+
4953
//TransferQueue;
5054
//int a = queue.peek();
5155
// PriorityQueue;

0 commit comments

Comments
 (0)