1. 首页
  2. 编程语言
  3. Java
  4. Java 8 in Action Lambdas, Streams, and Functional-style Programming.pdf

Java 8 in Action Lambdas, Streams, and Functional-style Programming.pdf

上传者: 2018-12-07 20:26:47上传 PDF文件 9.33MB 热度 59次
Since the release of JDK 1.0 (Java 1.0) in 1996, Java has won a large following of students, project managers, and programmers who are active users. It’s an expressive language and continues to be used for projects both large and small. Its evolution (via the addition of new features) from Java 1.1 (1997) to Java 7 (2011) has been well managed. Java 8 was released in March 2014. So the question is this: why should you care about Java 8? We argue that the changes to Java 8 are in many ways more profound than any other changes to Java in its history. The good news is that the changes enable you to write programs more easily—instead of writing verbose code like the following (to sort a list of apples in inventory based on their weight), Collections.sort(inventory, new Comparator () { public int compare(Apple a1, Apple a2){ return a1.getWeight().compareTo(a2.getWeight()); } });
用户评论