Paul Clapham wrote:
Why would you need to do that?
There is no need for that, just a training purpose
Let me be more precise ..
Suppose I have a class that stores objects of type Integer or Double (depending which one you choose) in the ArrayList:
So when instantiate such a class:
I will get an object that has an ArrayList<Integer> with 10 random numbers.....
Does it make any sense or rather there's something wrong with me....