Giter Club home page Giter Club logo

lambda-tutorial's Introduction

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. (In Progress) 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
b88 May 09, 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.

lambda-tutorial's People

Contributors

grundlefleck avatar karianna avatar neomatrix369 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.