/functional-programming-with-java

learn functional programming - lambda expressions, streams, filter... using java

Primary LanguageJava

functional-programming-with-java

Lambda expressions - Is nothing but a simpler way of defining another method(simplified representation of a method)

Streams - sequence of elements for each element (for each element in the stream we specify what needs to be done with it)

filter - Allows us to specify a condition only if that condition is matched

forEach - For each is used to consume an element ,you take an element and print it .forEach(System.out::println)

map - map one value to another