Skip to content

Instantly share code, notes, and snippets.

@anuragkalra
Last active December 16, 2018 00:22
Show Gist options
  • Select an option

  • Save anuragkalra/4574cc409c1c1c7e9cfdcce1aba5ae3b to your computer and use it in GitHub Desktop.

Select an option

Save anuragkalra/4574cc409c1c1c7e9cfdcce1aba5ae3b to your computer and use it in GitHub Desktop.
//OK
List<String> names = new ArrayList<String>();
//NOT OK
String a = "cat";
List<(a.getClass())> names2 = new ArrayList();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment