Last active
August 5, 2023 07:44
-
-
Save TheGreatJoules/898ed0ca1474fb0ca007527bc7ec48fe to your computer and use it in GitHub Desktop.
[Java/CharToArray]An approach to stream char array
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
char[] result = {'a','b','c'}; | |
String output = Stream.of(result) | |
.map(String::valueOf) | |
.collect(Collectors.joining()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment