Stream API in Java
🟢 Beginner Level | Java Core Syntax
📖 Definition
The Stream API (java.util.stream) enables declarative, functional transformations on collection sequences using filter(), map(), and collect().
âš¡ Code Example
List names = Arrays.asList("Alex", "Bob", "Anna");
List aNames = names.stream()
.filter(n -> n.startsWith("A"))
.collect(Collectors.toList());