A sequence of numbers

Report a typo

What is the sequence of numbers produced by the following code?

Stream.iterate(1, i -> i + 2)
        .skip(5)
        .limit(5)
        .forEach(n -> System.out.print(n + " "));

Try to find the answer out without running the code and then enter the numbers separated by one space.

Enter a short text
___

Create a free account to access the full topic