Код: Выделить всё
StreamНо мне нужен Iterable, а не Iterator.
Например, для этой строки:
Код: Выделить всё
String input = "this\n" +
"that\n" +
"the_other";
Источник: https://stackoverflow.com/questions/598 ... n-iterable
Код: Выделить всё
StreamКод: Выделить всё
String input = "this\n" +
"that\n" +
"the_other";