What would be the closest thing to a std::vector in Java? By this I mean, a class which can take in T into its constructor and then pushBack, popBack() and that is stored in
That would probably be ArrayDeque, if you need Stack functionality.
Do not use the Stack class as other here suggest.