Last active
August 6, 2020 16:17
-
-
Save mevsungur/5ec45e58bd1ce516a225c196e5feffde 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
public static void main(String[] args) { | |
List<String> isimList = Arrays.asList("Sungur",null,"Mevlüt","Angular"); | |
isimList = isimList.stream().filter(i -> i != null).sorted(String::compareTo) | |
.collect(Collectors.toList()); | |
isimList.forEach(System.out::println); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment