Java version of LINQ

Tags: LINQ

List<String> sortedDistinctColours = CAnimals.stream().map(CAnimal::getColour).sorted(String::compareToIgnoreCase).distinct().collect(Collectors.toList());

No Comments

You must log on to comment.