I have to create in Java a 2D matrix (consisting of double values) as well as a 1D vector. It should be possible to access individual rows and columns as well as individual
If you need thread safe behavior, use
Vector> matrix = new Vector>();
If you don't need thread safe behavior, use
ArrayList> matrix = new ArrayList>();