Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/java/collection/copyonwritearraylist-source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ System.out.println("列表清空后为:" + list);
输出:

```plain
初始列表:[Java, Python, C++]
列表第二个元素为:Python
删除结果:true
列表删除元素后为:[Java, Python]
列表更新后为:[Java, Golang]
列表插入元素后为:[PHP, Java, Golang]
列表大小为:3
Expand Down
2 changes: 1 addition & 1 deletion docs/java/collection/delayqueue-source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public boolean offer(E e) {

![](https://oss.javaguide.cn/github/javaguide/java/collection/delayqueue-take-1.png)

注意,调用 `await` 之后 t1 就会释放 `lcok` 锁,假如 `DelayQueue` 持续为空,那么 t2、t3 也会像 t1 一样执行相同的逻辑并进入 `conditionWaiter` 队列中。
注意,调用 `await` 之后 t1 就会释放 `lock` 锁,假如 `DelayQueue` 持续为空,那么 t2、t3 也会像 t1 一样执行相同的逻辑并进入 `conditionWaiter` 队列中。

![](https://oss.javaguide.cn/github/javaguide/java/collection/delayqueue-take-2.png)

Expand Down
2 changes: 2 additions & 0 deletions docs/java/collection/linkedlist-source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ System.out.println("清空后的链表:" + list);
输出:

```plain
链表内容:[apple, banana, pear]
链表内容:[apple, orange, banana, pear]
索引为 2 的元素:banana
链表内容:[apple, orange, banana, grape]
链表内容:[orange, banana, grape]
Expand Down
Loading