adoptopenjdk / lambda-tutorial Goto Github PK
View Code? Open in Web Editor NEWExercises to learn lambda syntax + the Streams API from the upcoming JDK 8 release
License: GNU General Public License v2.0
Exercises to learn lambda syntax + the Streams API from the upcoming JDK 8 release
License: GNU General Public License v2.0
This can be done 'automatically' via the maven license plugin that will shortly be supplied to this project.
This is a great learning project.
However I’ve noticed a lot of the content is focused on either EA or earlier versions of IDEs (in a Wiki) or compatible JDK.
Given latest versions of JDK (as if request 14-15) and with new release schedule, suggest
(1) updating JDK references in readme and source where applicable
(2) for IDE setup wiki pages changes since JDK 8 is readily supported if not mandatory now with recent IDE versions.
The source files for the following classes seem to be missing: StarRating, UserRatedMusicLibrary, CloudScrobblingMusicLibrary, UserRatedLocalFilesystemMusicLibrary.
The following imports do not resolve:
import org.adoptopenjdk.lambda.tutorial.exercise5.musicplayer.StarRating;
import org.adoptopenjdk.lambda.tutorial.exercise5.musicplayer.UserRatedMusicLibrary;
import org.adoptopenjdk.lambda.tutorial.exercise5.thirdpartyplugin.CloudScrobblingMusicLibrary;
import org.adoptopenjdk.lambda.tutorial.exercise5.thirdpartyplugin.UserRatedLocalFilesystemMusicLibrary;
The solution for Exercise 1, Test 3 requires that multiple statements are executed in a single lambda. However, the syntax for doing has not been introduced.
The fix would be to put an example of that syntax somewhere in the JavaDocs.
Following OO principles of not having public access to private members
Whilst there's not too many classes to overhaul, this is a good opportunity to get this right early. + package-info files as well.
Exercise_1_Test has one test case which requires Shape#toString method, and the following test case expects the use of Shape#getColor to build the result string. The latter test case should just use Shape#toString, for consistency.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.