Skip to content

Ability to change ArrayList's initial size #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thatrobotdev opened this issue Apr 24, 2025 · 0 comments
Open

Ability to change ArrayList's initial size #30

thatrobotdev opened this issue Apr 24, 2025 · 0 comments

Comments

@thatrobotdev
Copy link

Hello! It would be useful to be able to change the initial size of an ArrayList, like you can change the initial capacity of a HashMap.

Maybe it would look like this?

Image

ArrayList already has a "Clear" button, so maybe having both "Clear" and "Restart" would be confusing. It could also just update the initial capacity automatically on typing the new value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant