Programming Tips - Java: How do I append to a Java array?
Date: 2011apr8
Language: Java
Level: beginner
Q. Java: How do I append to a Java array?
A. You can't append to regular Java array.
Once its size is set it cannot change.
You can declare a lager array and copy to it (and then set what you want).
Or use ArrayList<> which can grow.