I want to store as many elements as desired by the user in an array. But how do I do it.
If I were to create an array, I must do so with a fixed size. Every time a
Use an ArrayList. The size it automatically increased if you try to add to a full ArrayList.