What is a Function?
This is a predefined functional interface like Predicate, present in java.util.function package. It has one abstract method called apply();
1 | interface Function<T,R> { |
Function example 1: to check the length of the string.
1 | package com.blogspot.ekumeedkiasha; |
Function Chaining example:
1 | package com.blogspot.ekumeedkiasha; |
EmoticonEmoticon