Skip to content

Instantly share code, notes, and snippets.

@MohammadSamandari
Created April 1, 2019 10:46
Show Gist options
  • Select an option

  • Save MohammadSamandari/b07d911ac0dd2ace7692ca88e76f9035 to your computer and use it in GitHub Desktop.

Select an option

Save MohammadSamandari/b07d911ac0dd2ace7692ca88e76f9035 to your computer and use it in GitHub Desktop.
Formatting Int so that it is 2 digit number
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