1
JavaIntermediate#java8#lambda
Streams provide a functional-style pipeline of operations (filter, map, reduce, collect) on collections. Intermediate ops are lazy, terminal ops trigger execution. They support parallel streams for multi-core processing.
List<String> names = List.of("Amit","Bob","Ankit");
List<String> result = names.stream()
.filter(n -> n.startsWith("A"))
.map(String::toUpperCase)
.collect(Collectors.toList());
// [AMIT, ANKIT]