Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(congruentialButton.isSelected()) {
- if(textA.getText() == "" || textB.getText() == "" || textN.getText() == "" || textM.getText() == "") {
- resultText.setText(""+ fun.function7(Integer.parseInt(textA.getText()), Integer.parseInt(textB.getText()) , Integer.parseInt(textM.getText()), Integer.parseInt(textN.getText())));
- } else {
- resultText.setText("Error");
- }
- show = show + "Function: Linear congruential generator | Input: a = " + textA.getText()+ " b = " + textB.getText() + " m = " + textM.getText() + "n = " + textN.getText() + "Result: " + resultText.getText() + "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement