String.format(Locale.US, "%02d:%02d", m, s) produces for m = 3, s = 7:
- 3:7
- 03:07
- 0307
- 3:07
Answer
B) 03:07
%02d pads numbers to two digits.
Computer Science MCQ · More Lab: Countdown Timer MCQs · Practise
B) 03:07
%02d pads numbers to two digits.
Computer Science MCQ · More Lab: Countdown Timer MCQs · Practise