python call 2 functions in lambda code example
Example 1: how to define a function in python
def function_name():
pass
Example 2: how to use lambda in java
StateOwner stateOwner = new StateOwner();
stateOwner.addStateListener(
(oldState, newState) -> System.out.println("State changed")
);