Create an EventHandler<ActionEvent>
reference called handler
and
assign it an object from an anonymous inner class that implements the
EventHandler<ActionEvent>
interface. The handler must display
"clicked" to the console whenever triggered.
Stuck? You may find these lessons helpful: