Answer the question
In order to leave comments, you need to log in
How to interpret the syntactic construction?
Good afternoon!
I am reading the book "Java 8. Beginner's Guide"
Perhaps because I read selectively, or maybe not, but I can not understand the following syntactic construction
ЬtnUp.setOnAction(new EventHandler<ActionEvent>()
puЬlic void handle(ActionEvent ае) {
response.setText("You pressed Up.");
}
}) ;
public class Anonymous {
public static void main(String[] args) {
Runnable anonym = new Runnable() {
public void run() {
}
};
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question