Created
September 15, 2021 18:39
-
-
Save DanielShterenberg/bb013ee288a515d1911f2baacef1f05f to your computer and use it in GitHub Desktop.
Java List - not typesafe and will generate a runtime error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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