The below example shows how to create Integer Stream and print event numbers.
It gives the following output,
2 4 6 8 2 4 6 8