leadingZero static method

String leadingZero(
  1. int value
)

set int value with leading zero

Implementation

static String leadingZero(int value) {
  return value.toString().padLeft(2, "0");
}