It ignores the first n elements of a stream and processes the remaining elements.
List<Integer> numbers = List.of(1, 2, 3, 4, 5);
List<Integer> result = numbers.stream()
.skip(2)
.toList();
System.out.println(result);Output:
[3, 4, 5]