SyntaxFix
Write A Post
Hire A Developer
Questions
You might be looking for a List? Either LinkedList or ArrayList are good classes to take a look at. You can then call toArray() to get the list as an array.
List
LinkedList
ArrayList
toArray()