Skip to content

Instantly share code, notes, and snippets.

@shahsurajk
Created March 23, 2020 17:12
Show Gist options
  • Save shahsurajk/fc3785fe6979fde97b8cc6e9fa573069 to your computer and use it in GitHub Desktop.
Save shahsurajk/fc3785fe6979fde97b8cc6e9fa573069 to your computer and use it in GitHub Desktop.
final List<String> s = new ArrayList<>();
final boolean isOfTypeList = s instanceof List; // this works!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment