SyntaxFix
Write A Post
Hire A Developer
Questions
This is a possible solution:
list.add(list.size(), new Object());