Created
August 13, 2019 18:04
-
-
Save prmichaelsen/d7db72e5ab6e063657db1aa53704a67f to your computer and use it in GitHub Desktop.
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
// creating an array of ints without generics | |
int[] myArray = new int[] {}; | |
// creating lists for ints and strings, respectively | |
IntList myIntList = new IntList(); | |
StringList myStringList = new StringList(); | |
// creating a list for each using generics | |
List<int> myGenericIntList = new ArrayList<int>(); | |
List<string> myGenericStringList = new ArrayList<string>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment