-
-
Save anonymous/42ae0a57e2a7cdc61d449bf4da78a389 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
public int getTxt_first_score() { | |
int a = Integer.parseInt(txt_first_score.getText()); | |
while (a > 100 || a < 0 ) { | |
JOptionPane.showMessageDialog(null, "try again"); | |
a = Integer.parseInt(txt_first_score.getText()); | |
} | |
return Integer.parseInt(txt_first_score.getText()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment