SyntaxFix
Write A Post
Hire A Developer
Questions
You can do something like
MyClass[] arr = myList.toArray(new MyClass[myList.size()]);