pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/c-guntur/java-katas/tree/main/java-lambdas

m/assets/primer-70be7debc79a8eff.css" /> java-katas/java-lambdas at main · c-guntur/java-katas · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Java Lambdas - A Code kata

Java Duke Lambda Logo

Java lambdas are anonymous functions that make code much moe concise and simpler.

What is a Code-Kata

A code-kata is a coding exercise that builds muscle memory by a practice of programming to arrive at a known solution.

How does one go about with this code kata?

The essence of the exercise (presentation material and code kata) is to demonstrate the usage patterns for the java API or functionality.

This set of code katas rely on fixing broken tests. The tests may have multiple solutions, the intent is to learn and experiment.

The project contains several JUnit tests that fail.

Simple steps to use this kata

  1. Run the test class(es).

  2. One or more tests will fail with the test failure message.

  3. Fix the failing tests by using HINT and TODO comments.

  4. Repeat above steps until all tests pass.

  5. Check the solutions to see if there are other ways to solve. (Remember, the solution may be less performant/optimal than yours)

  6. Rinse and repeat (delete and checkout again, then back to Step 1) to build muscle memory.

Mission

Your mission, should you choose to accept it, will be to fix the JUnit tests. This message will self-destruct in NaN minutes.

Requirements

How to prepare for coding along

This kata is developed as a Java maven project.Ensure that you have:

  1. Apache Maven 3.6.x or above. Tested with Apache Maven 3.6.3. Link: https://maven.apache.org/download.cgi

  2. JDK 11 or above. Tested with OpenJDK 11 Link: http://jdk.java.net/11/

  3. Your favorite Java IDE. IntelliJ IDEA Ultimate was used to develop this kata.

Project Structure

The structure of the project:

|____pom.xml
|____README.md
|
|____src
| |
| |____test                    <------------------- Kata Tests
| | |____java
| |   |____none
| |     |____cvg
| |       |____lambdas
| |
| |____main                    <------------------- Shared ErrorMessages & DemoClass
| | |____java
| |   |____none
| |     |____cvg
| |       |____lambdas
| |
| |____solutions               <------------------- Solutions
| | |____java
| |   |____none
| |     |____cvg
| |       |____lambdas

Tests Included

Java Lambda

The JUnit tests listed below are setup to teach/learn the Java Lambda features.

TestKata1LambdaBasics.java

show the basic features of lambdas in Java.

TestKata2LambdasDeeperDive.java

explore deeper into Java Lambda usages.

Take Away

The key take-away from this kata is a solid understanding of the Java Lambdas.

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy