Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to use lambda in java

StateOwner stateOwner = new StateOwner();

stateOwner.addStateListener(
    (oldState, newState) -> System.out.println("State changed")
);
Source by tutorials.jenkov.com #
 
PREVIOUS NEXT
Tagged: #lambda #java
ADD COMMENT
Topic
Name
9+5 =