Programming with Streams in Java 8
summary
Shows how Java 8 Stream API transforms a List<Person> into results: using filter→map→collect to produce uppercase names of females over 18 (transcript example returns Sarah and Paula from eight people), using map+reduce to total ages (example total 212), and switching to parallelStream for concurrency. Emphasizes lazy fused pipeline semantics (no intermediates), explains the bug of mutating an external list with forEach and the correct pattern collect(Collectors.toList()) that avoids race conditions and lets the runtime optimize and parallelize safely.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:32Create Person
- 6:08Cohesion
- 30:33Function Composition
- 40:39Map Is a Transformation
- 49:25Parallelism
- 52:26Specialized Functions
- 57:42Concurrency Synchronization
related talks
01h 01mTransforming Data using the Functional API
49mJava Functional Programming Idioms
01h 47mProgramming with Streams in Java 8
44mI didn't know you could do that with Java Streams!
51mIf Streams Are So Great, Let’s Use Them Everywhere... Right??
02h 25mExploring Collectors
49mJava Streams: Beyond The Basics
44mThinking in Streams
