📜  java vector push_back - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:07.941000             🧑  作者: Mango

代码示例1
// push_back equivalent
ArrayList a = new ArrayList();
a.add(2);             // Add element to the ArrayList.
a.add(4);

// pop_back equivalent.
a.remove(a.size()-1); // Remove the last element from the ArrayList.