Created
March 14, 2020 07:55
-
-
Save KalpaD/6074c098ed0d83ec45c9c1291a670492 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private static void debuggingUsingLogOperator() { | |
| List<String> nameList = Arrays.asList("Rochel", "April", "Hong"); | |
| Flux<String> stringFlux = Flux.fromIterable(nameList) | |
| .distinct() | |
| .map(name -> name.substring(0, 3)) | |
| .map(String::toUpperCase) | |
| .log(); | |
| stringFlux.subscribe(log::info); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment