Skip to content

Instantly share code, notes, and snippets.

@romach
Created April 7, 2017 22:37
Show Gist options
  • Save romach/c9e59e5a0490ebad13ac5e3d8e22f4fb to your computer and use it in GitHub Desktop.
Save romach/c9e59e5a0490ebad13ac5e3d8e22f4fb to your computer and use it in GitHub Desktop.
Format int with leading zeroes
String.format("%05d", yournumber);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment