How to convert short[] into List<Short> in Java with streams?
Why not
IntStream.range(0, shortarray.length)
.mapToObj(s -> shortarray[s])
.collect(Collectors.toList());
Why not
IntStream.range(0, shortarray.length)
.mapToObj(s -> shortarray[s])
.collect(Collectors.toList());