Skip to content

Instantly share code, notes, and snippets.

@samfcmc
Last active July 29, 2018 15:47
Show Gist options
  • Save samfcmc/4666c9273913ead5fb51f530e9c51217 to your computer and use it in GitHub Desktop.
Save samfcmc/4666c9273913ead5fb51f530e9c51217 to your computer and use it in GitHub Desktop.
Instantiatig an Array List with a capacity argument
int capacity = 20;
List myList = new ArrayList(capacity);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment