Here is my code:
int hoursFormat = 1, minsFormat = 2, secsFormat = 3; String timeFormat = String.format(\"%02d:%02d:%02d\",hoursFormat, minsFormat, secsForma
The signature of format is:
public static String format(String format, Object ... args) { return new Formatter().format(format, args).toString(); }
and it seems no any mistakes in your code, for my suggestion try to run this with console application without using any IDE (For test purpose).