Skip to content
Advertisement

How to convert short[] into List in Java with streams?

I figured I could extrapolate from this question but I can’t

I can of course do

JavaScript

But I’m wondering how to do it with streams.

JavaScript

doesn’t work for example but yields The method stream(T[]) in the type Arrays is not applicable for the arguments (short[])

Advertisement

Answer

Why not

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement