Click here to Skip to main content
15,892,674 members

Comments by Vibhanshu 2022 (Top 2 by date)

Vibhanshu 2022 12-Dec-22 4:21am View    
I have restriction of the return type it should be of the form List<int[]>
Vibhanshu 2022 11-Dec-22 9:43am View    
Using the code format I am having error when I am trying to call flatten recursively
stream = stream.flatMap(o -> o instanceof Object[] ? flatten((Object[])o) : Stream.of(o));

Since my function is expecting Integer[] as return type can that be the cause?

Error-> unhandled exception