Created
November 19, 2018 16:11
-
-
Save alexlarkou/30f0127759e8159c95c824d24cd3f315 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
// c# | |
List<Student> studentsInAllSchools = studentsInAllSchools.ToList(); | |
// java | |
List<Student> studentsInAllSchoolsList = studentsInAllSchools.collect(Collectors.toList()); | |
// or, if you specifically want an arrayList.. | |
List<Student> studentsInAllSchoolsArrayList = studentsInAllSchools.collect(Collectors.toCollection(ArrayList::new)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment