Here is my code:
int hoursFormat = 1, minsFormat = 2, secsFormat = 3; String timeFormat = String.format(\"%02d:%02d:%02d\",hoursFormat, minsFormat, secsForma
You have jdk 1.4 or below version. The method String.format() is introduce in Jdk 1.5.
jdk 1.4
Jdk 1.5
Take a look at coderanch post.