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
Is ArrayList what you're looking for? ArrayList l = new ArrayList(); So you can have a list of anything (defined between the <>).
ArrayList l = new ArrayList();