action源码 java_Java8InAction

Java8InAction

This repository contains all the source code for the examples and quizzes in the book Java 8 in Action: Lambdas, Streams and functional-style programming.

You can purchase the book here: http://manning.com/urma/ or on Amazon

The source code for all examples can be found in the directory src/main/java/lambdasinaction

Chapter 1: Java 8: why should you care?

Chapter 2: Passing code with behavior parameterization

Chapter 3: Lambda expressions

Chapter 4: Working with Streams

Chapter 5: Processing data with streams

Chapter 6: Collecting data with streams

Chapter 7: Parallel data processing and performance

Chapter 8: Refactoring, testing, debugging

Chapter 9: Default methods

Chapter 10: Using Optional as a better alternative to null

Chapter 11: CompletableFuture: composable asynchronous programming

Chapter 12: New Date and Time API

Chapter 13: Thinking functionally

Chapter 14: Functional programming techniques

Chapter 15: Blending OOP and FP: comparing Java 8 and Scala

Chapter 16: Conclusions and "where next" for Java

Appendix A: Miscellaneous language updates

Appendix B: Miscellaneous library updates

Appendix C: Performing multiple operations in parallel on a Stream

Appendix D: Lambdas and JVM bytecode

We will update the repository as we update the book. Stay tuned!

Make sure to have JDK8 installed

$ java -version

java version "1.8.0_05"

Java(TM) SE Runtime Environment (build 1.8.0_05-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

You can download a preview version here: https://jdk8.java.net/

Compile/Run the examples

Using maven:

$ mvn compile

$ cd target/classes

$ java lambdasinaction/chap1/FilteringApples

Alternatively you can compile the files manually inside the directory src/main/java

You can also import the project in your favorite IDE:

* In IntelliJ use "File->Open" menu and navigate to the folder where the project resides

* In Eclipse use "File->Import->Existing Maven Projects" (also modify "Reduntant super interfaces" to report as Warnings instead of Errors

* In Netbeans use "File->Open Project" menu

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值