Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/wangzheng0822/algo
/ addFirst
Method
addFirst
java/05_array/GenericArray.java:80–82 ·
view source on GitHub ↗
(T e)
Source
from the content-addressed store, hash-verified
78
79
// 向数组头插入元素
80
public
void
addFirst(T e) {
81
add(0, e);
82
}
83
84
// 向数组尾插入元素
85
public
void
addLast(T e) {
Callers
nothing calls this directly
Calls
1
add
Method · 0.95
Tested by
no test coverage detected