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).
You can use an ArrayList<Double> however you may find that TDoubleArrayList is more efficient as this wraps a double[]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With