*** I know, well cept the part of Vector being left over from C++ (there was never a Vector class in c++ that I remember), I was just explaining why some people use[d] it. I personally use just plain List and initialize it with an ArrayList. --Chase-san |
*** I know, well cept the part of Vector being left over from C++ (there was never a Vector class in c++ that I remember), I was just explaining why some people use[d] it. I personally use just plain List and initialize it with an ArrayList. --Chase-san *** Of course there is a vector class is c++! It's part of the Standard Template Library (STL): #include <vector> *** And using a member variable of the interface (such as List), and declaring it as an implementation (ArrayList) is the preferred way to use the Collections framework. That way you can change it to a LinkedList, or another List implementation without breaking any of your code. |