Last active
August 27, 2019 15:19
-
-
Save yavuztas/dd20af59f57da2a4bae1981776e36a4e 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
public static List<Integer> toList(int[] array) { | |
return Arrays.stream(array).boxed().collect(Collectors.toList()); | |
} | |
public static List<Long> toList(long[] array) { | |
return Arrays.stream(array).boxed().collect(Collectors.toList()); | |
} | |
public static List<Double> toList(double[] array) { | |
return Arrays.stream(array).boxed().collect(Collectors.toList()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment