Upgrade to Modern Java
summary
Processes a 235,000-word Webster list to print the 10 longest words (five of length 24, five of 23) using Files.lines, try-with-resources, Java 8 streams, lambdas, method references, Comparator.comparingInt.reversed, groupingBy and counting collectors, and Optional.max. Demonstrates Java 11 HTTP Client plus Jackson to fetch astronaut data, then maps into records + sealed interfaces + pattern-matching for switch to return success/failure results. Code and tests (Mockito, WireMock) live in the GitHub repo and currently target Java 20.
AI-written summary · about
chapters (7)
- 0:00Introduction and approach
- 6:36Java 8 features
- 24:15Deep dive into Optional
- 28:15Modern Java web services
- 40:23Pattern matching for switch
- 46:36Licensing and resources
- 51:13Overview of newer features








