6
int[]
に私はforEach
を使用せずにどのように変換できますか?Java 8で、どのようにストリーム<int[]>を使用せずにint配列を得ることができます
final Stream<int[]> stream = foos.stream()
.map(foos -> insertQuery(contact, create))
.map(create::batch)
.map(Batch::execute); //Batch::execute will return the int[]