Giter VIP home page Giter VIP logo

lambda-streamapi's Introduction

Lambda-StreamAPI

Content

Lambda Expression

  • What is Lambda Expression?
  • Functional interfaces?
  • Why do we need lambda expressions?

Stream API

  • What is a Stream?
  • How streams change our way of programing and make our code better?
    • common operations on collections: using streams vs for-loop

Exercise 1

  • Given two collections of interested topics, e.g: Java Stream API, Java Concurrency, Object-Oriented Programming,...

    • one collection maintains currently intersted topics (of a person)
    • one collection contains newly updated interested topics (a person may edit their interested topics)
    • a Topic has an unique id, a name, a description
  • Find out all

    • newly added interested topics
    • updated interested topics
    • deleted interested topics

Exercise 2

  • Given a list of programmers in a company
    • a Programmer has id, division, team, gender, name
  • Process the list and categorize programers into divisions, as below:
{
  "division_1": [
    "Programmer 1",
    "Programmer 2",
    "Programmer 3",
    "Programmer 4"
  ],
  "division_2": [
    "Programmer 5",
    "Programmer 6",
    "Programmer 7"
  ]
}
  • Process the list and categorize programers into divisions, then teams, then genders, as below:
{
  "division_1": {
    "java": {
      "male": [
        "Programmer 1",
        "Programmer 2",
        "Programmer 3"
      ],
      "female": [
        "programmer 4"
      ]
    },
    "php": {
      "male": [
        "Programmer 5, Programmer 6"
      ],
      "female": [
        "Programm 7"
      ]
    }
  }
}

Note

Please create a github account and fork this repository and start the study and do the exercises. When you're done just send a pull/merge request to this repo.

lambda-streamapi's People

Contributors

namnq avatar toandv avatar

Watchers

 avatar  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.