padding static method

String padding(
  1. int n
)

Implementation

static String padding(int n) {
  return (n < 10 ? '0' : '') + n.toString();
}