SyntaxFix
Write A Post
Hire A Developer
Questions
You can use an ArrayList and then use the toArray() method. But depending on what you are doing, you might not even need an array at all. Look into seeing if Lists are more what you want.
ArrayList
toArray()
Lists
See: Java List Tutorial