Originally posted by frantisek nejedly:
Rob, you may not have read the the comment:
I would like to know why the attempt is perhaps the worst.
Thanks.
It is bad because it does not allow for any growth. 5 elements, and that's it. There is also no way of removing or retrieving anything.
Also, you asked "How would look a good one?". My answer to that was: java.util.ArrayList.