how to get the checkbox checked value in javafx

Java
CheckBox.isSelected();
Source

Also in Java: