Giter Site home page Giter Site logo

java_8_recipes's Introduction

java_8_recipes

Source code for Modern Java Recipes (O'Reilly, 2017)

http://shop.oreilly.com/product/0636920056669.do

For IntelliJ:

  • clone repo or download zip and extract
  • Use File -> Open or if not project is open, Import
  • Navigate to the build.gradle file inside the project
  • Click enter and accept all the defaults

For Eclipse (and Eclipse-based tools, like STS):

  • Open a command prompt in the root of the unzipped project
  • Type gradlew cleanEclipse eclipse (Note: if you're on a Unix-based system, including Macs, you need to use ./gradlew …)
  • Wait for the dependencies to be downloaded
  • Choose File -> Import… -> General -> Existing Projects into Workspace
  • Navigate to the root of the project and select it

java_8_recipes's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar kousen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

java_8_recipes's Issues

Stream "mapToInt" with "Integer::valueOf"

Hi there,

On page 119, example 5-6 we have the list of Integers "nums" and the below code to calculate the sum:

total = nums.stream().mapToInt(Integer::valueOf).sum()

Wouldn't be better to use "Integer::intValue" since valueOf takes an int primitive as argument and returns an Integer object? In this case I know the list is small so it's not a problem but just saying... what do you think?

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.