description:
Stream passes in a set of numbers and then processes the output of other types
is equivalent to the following code:
//method
List<Foo> fooList = new ArrayList<>();
for (Integer i: Arrays.asList(1, 2, 3)) {
fooList.add(new Foo(i, i.toString()));
}
return fooList;
//method
//Foo
class Foo(int i, String s){}
after searching, I didn"t find anything like this, usually the one with the same input and output.