Skip to content

Instantly share code, notes, and snippets.

@yenerm
Created May 17, 2020 22:56
Show Gist options
  • Save yenerm/fbc31fd70c3415673d9c41c79c4484f2 to your computer and use it in GitHub Desktop.
Save yenerm/fbc31fd70c3415673d9c41c79c4484f2 to your computer and use it in GitHub Desktop.
Java List without generics
List list = new ArrayList();
list.add("First String");
list.add(6); // No error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment