-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
  • 15,514
  • 17
  • 42
  • 51
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.
  • 937
  • 14
  • 22