Created
April 1, 2019 10:46
-
-
Save MohammadSamandari/b07d911ac0dd2ace7692ca88e76f9035 to your computer and use it in GitHub Desktop.
Formatting Int so that it is 2 digit number
This file contains hidden or 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
| txtScore.setText(new DecimalFormat("00").format(noCorrectAnswer) + | |
| " / " + | |
| new DecimalFormat("00").format(noAllQuestions)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment