-2

What does it represents in java?

String.format("%01000d",0)

It prints 0 thousands times. But can anyone help how does it actually works. What does "%01000d" represents?

Tom
  • 16,842
  • 17
  • 45
  • 54
Parag122
  • 11
  • 2

1 Answers1

0

The first argument is a format string, here you can find the sintax: https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax

Giovanni P.
  • 1,017
  • 15
  • 23