* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
623 B
Markdown
8 lines
623 B
Markdown
# Array vs ArrayList
|
|
|
|
Arrays and ArrayLists are both ways to store collections of elements in Java. An array is a fixed-size, ordered sequence of elements of the same data type. Once you declare its size, you cannot change it. An ArrayList, on the other hand, is a dynamic, resizable array implementation. It can grow or shrink as needed, allowing you to add or remove elements without worrying about the initial size.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Java Arrays](https://jenkov.com/tutorials/java/arrays.html)
|
|
- [@article@Java ArrayLists](https://jenkov.com/tutorials/java-collections/list.html) |