Limit: It restricts the stream to the first n elements and ignores the rest. List<Integer> numbers = List.of(1, 2, 3, 4, 5); List<Integer> result = numbers.stream() .limit(3) .toList(); System.out.println(result); Output: [1, 2, 3] ← Previous: F Peek Next: H Skip →