GitHub - vpilot/lambda-tutorial: Exercises to learn lambda syntax + the Streams API from the upcoming JDK 8 release | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

vpilot/lambda-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Tutorial

A set of exercises to teach use of Java 8 lambda syntax, and the new Streams API.

To follow the exercises:

  • fork and clone the repository
  • ensure you have a correctly configured, lambda-enabled Java build
    • Maven can help generate configuration for your favourite IDE, though you will likely have to set the JDK manually
    • ensure your cloned project, particularly the class ConfigureYourLambdaBuildOfJdk compiles and runs correctly
  • navigate to the first exercise, Exercise_1_Test (tests are in src/test/java, in the package org.adoptopenjdk.lambda.tutorial)
  • read background information in the JavaDoc, and follow instructions, making the test pass
  • to find solutions check out different branches of the project. Two flavours of solutions are available: what it might have looked like before JDK 8, and what it might look like after JDK 8. Those are in branches solutions-prejava8 and solutions-postjava8 respectively.

Exercises

  1. Internal vs External Iteration (the forEach method)
  2. Filtering and Collecting
  3. Mapping
  4. Method References

[More to come]

Getting Lambda JDK

Early access builds of JDK 8 are available here.

Lamba JDK Build Compatibility

The current tutorial is known to work with the following JDK build:

JDK Build Number Released On
ea b109 Sep 26, 2013

lambda-tutorial will try to track against the newest version available. If you find that you are working with a newer version of the Lambda JDK and the tutorial does not compile or run, please file an issue.

IDE Setup

Note: we are hoping the instructions are not too sensitive to the OSes on which they have been performed.

About

Exercises to learn lambda syntax + the Streams API from the upcoming JDK 8 release

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.