You can also prompt for an array size and then use that in your declaration for the array. However, unless you are required to use arrays, the best method is what dboxall123 said. Use ArrayList.
...