I want to have a resizable structure in Java to keep one dimension-arrays or vectors of type double. What is the best way to do?
Is it possible to pass an array as parameter to an Arraylist? May be to a Vector?
If not what is a quite reasonable solution?
After all, based on the proposed implementation, what is the most effective way to gain values from the structure and to use them on calculations (adding arrays, multiply arrays ,etc).
With generics, you can pass any
typewhich is a sub-class ofjava.lang.Object.(Java primitive types are not sub-class ofjava.lang.Object)and of course you can pass array object.