posted 7 years ago
Hello,
I have found a doubt about how to convert from DoubleStream to Stream<Integer>.
Let's see the code:
May someone tell me what is wrong here?
The error I'he got is: error: incompatible types: double cannot be converted to Integer Stream<Integer> AA = D.mapToObj(x -> (Integer)x);
Thanks in advance.