// push_back equivalent ArrayList<int> a = new ArrayList<int>(); 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.
myvector = {1, 2, 3, 4, 5}; myvector.push_back(6)
(Things).push_back(Items)