Define the test class. Definition method, parameters are defined by the interface.
Interface class way
Calling a method, the parameter is an interface, this interface can pass implementation class object
Anonymous inner class way
Lambda
A first implementation class manner, because there is no method of rewriting the output
lambda simplified