java8/Java8InAction

Stream() API support for Array

Opened this issue · 2 comments

String[] stringArray = {"A,B","B,A","C,D","C,B","A,V"};
stringArray.stream() ------>> Cannot invoke stream() on the array type String[]

is it not good to have streaming on Array as well? :)

xerZV commented

try

import java.util.Arrays;
......
Arrays.stream(stringArray)

great. cheers. :)