Created
October 10, 2019 15:42
-
-
Save BMU-Verlag/69e99fde2beb7b38333887432cc3ec09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FXML | |
void prepareOperation(ActionEvent event) { | |
if (event.getSource() == add) { | |
this.nextOperation = Operation.ADD; | |
} else if (event.getSource() == subtract) { | |
this.nextOperation = Operation.SUBTRACT; | |
} else if (event.getSource() == multiply) { | |
this.nextOperation = Operation.MULTIPLY; | |
} else if (event.getSource() == divide) { | |
this.nextOperation = Operation.DIVIDE; | |
} | |
lastResult.setText(input.getText()); | |
input.setText(""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment