There is a button and a label of the counter, it is necessary that when you press the button, the counter adds 1 and displays the new value. I can not understand where I need to enter a variable, I tried both inside a lambda, and as a separate class, and with setOnAction, but the console issues "local variables referenced from a lambda expression".
myBtn.setOnAction(e -> { //логика });