This is an example implementation of the lambda function in java language.