which class should I use if I need a 2 dimensional Vector?
Printable View
which class should I use if I need a 2 dimensional Vector?
Do you need a matrix-like data structure, or a 2 dimensional vector for math/physics?
If you need the first, see Multi-dimension arraylist example
Arraylists are generally preferred over Vectors, but if you need Vectors for whatever reason, simply swap any references to ArrayList with Vector
great post!