Last active
August 5, 2023 07:43
-
-
Save TheGreatJoules/c2b0f0f07d2abd8bc5f6f23212d5a9c7 to your computer and use it in GitHub Desktop.
[Java/ArrayToList] ArrayToList using streams #streams #java
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
int[] example = new int[] {1, 2, 3}; | |
Arrays.stream(example) | |
.boxed() | |
.collect(Collectors.toList()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment