Skip to content

anyulled/java-8-lambdas-intro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code repository for Training JSE8 - Intro to Lambdas


Exercises:

Basic lambdas (Jse8_lambdas/src/part1/lambdas):

  • Implement what you can see at /exercises/Sample1_WithoutLambda.java in the Sample1A_NoArguments.java file no using arguments.
  • Implement what you can see at /exercises/Sample1_WithoutLambda.java in the Sample1B_withArguments.java file using arguments.
  • Implement what you can see at /exercises/Sample2_WithoutLambda.java in the Sample2A_UseSimpleInterface.java file using a functional interface.
  • Implement what you can see at /exercises/Sample2_WithoutLambda.java in the Sample2B_UseInterfaceWithArgs.java file using two functional interface, one used as - parameters for the second.

Collections (Jse8_lambdas/src/part2/collections/traversing):

  • Implement what you can see at /exercises/Sample1_Predicate_NoLambda.java in the Sample1_TraverseCollections.java file using the foreach lambda expression.

Default methods (Jse8_lambdas/src/part3/defaultmethods):

  • Review default methods defined at Loggable.java and use them at UseLoggable.java.

Method reference (Jse8_lambdas/src/part4/methodreference):

  • Implement commented TODO lines at exercises/Sample1_SortStaticMethod.java using a custom method.

Constructor reference (Jse8_lambdas/src/part5/constructorreference):

  • Implement commented TODO lines in the exercises/Sample1A_NoArguments.java file using constructor reference.

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%