|
To add, i also agree with titaniumdecoy that you should use an ArrayList for a few reasons. In this application the speed and memory usage wont matter, however, using the ArrayList approach will make you learn how to use it, which will definitally help with future projects where space is an issue. it also eliminates any need to check through the whole array, as you only go through the list and then you are done.
|