~/talk

Programming with Streams in Java 8

slides:none on file

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

  1. 0:00Start
  2. 0:32Create Person
  3. 6:08Cohesion
  4. 30:33Function Composition
  5. 40:39Map Is a Transformation
  6. 49:25Parallelism
  7. 52:26Specialized Functions
  8. 57:42Concurrency Synchronization
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.