Skip to content

Instantly share code, notes, and snippets.

@DanielShterenberg
Created September 15, 2021 18:39
Show Gist options
  • Save DanielShterenberg/bb013ee288a515d1911f2baacef1f05f to your computer and use it in GitHub Desktop.
Save DanielShterenberg/bb013ee288a515d1911f2baacef1f05f to your computer and use it in GitHub Desktop.
Java List - not typesafe and will generate a runtime error
List list = new ArrayList();
list.add("hello");
list.add(123);
list.add(new object);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment