I am coming from a C++ background. I use vector push_back and pop_back methods to push and pop out elements from the vector. I know arraylist is sort of equivalent to vector, but I don'f find equivalent methods to push_back and pop_back in arraylist API. The closet I could find is LinkedList. Am I missing something or is there any other equivalent to vector in C++?
Any help is appreciated.