javadocs:
public static String format(String format, Object... args)
, .
String.format(String format, Object... args)
Formatter#format(Locale l, String format, Object ... args), Locale, , Local.getDefault()
Formatter#format(Locale l, String format, Object ... args) , .
case 0:
lasto++;
last = lasto;
if (args != null && lasto > args.length - 1)
throw new MissingFormatArgumentException(fs.toString());
fs.print((args == null ? null : args[lasto]), l);
break;
, MissingFormatArgumentException %02d.
, FormatString[]
[0] β % 02d
[1] β :
[2] β % 02d
[3] β :
[4] β % 02d
, 0 . , String#format(String, Object ...), , format. , null , NullPointerException Atleast one argument needs to be specified to format, , . , .
user6232354