Solutionunvalidated

`SomeList.toArray(...)` will first check if the array is big enough to fit the elements — Java we have toArray() method. Tension: You might prefer to do `someList.toArray(new AnotherClass[someList.size()])`. Outcome: `new AnotherClass[0]` will create an array with 0 elements.

04c2d088-d531-49fd-ba1f-8e6bb1b05604

SomeList.toArray(...) will first check if the array is big enough to fit the elements — Java we have toArray() method. Tension: You might prefer to do someList.toArray(new AnotherClass[someList.size()]). Outcome: new AnotherClass[0] will create an array with 0 elements.