D
Deniz Dogan
Hello again! Yes, I have yet another problem for all of you great
programmers in here.
This should actually be a pretty easy task to complete, but somehow the
blood in my veins doesn't seem to flow the right way just now. Here's
the problem:
I have an amount of milliseconds, in the range [0,Integer.MAX_VALUE] and
I want to format it to a String of the format "HH:nn:ss,mmm" where HH
ranges between 00-99, nn between 00-59, ss between 00-59 and mmm between
000-999 (all of the ranges inclusive).
The only thing I can come up with now as a solution is a bunch of
if-then-else statements, but really now, we shouldn't have to go and do
that, do we?
I love stating problems. Looking forward to your help.
/Deniz Dogan
programmers in here.
This should actually be a pretty easy task to complete, but somehow the
blood in my veins doesn't seem to flow the right way just now. Here's
the problem:
I have an amount of milliseconds, in the range [0,Integer.MAX_VALUE] and
I want to format it to a String of the format "HH:nn:ss,mmm" where HH
ranges between 00-99, nn between 00-59, ss between 00-59 and mmm between
000-999 (all of the ranges inclusive).
The only thing I can come up with now as a solution is a bunch of
if-then-else statements, but really now, we shouldn't have to go and do
that, do we?
I love stating problems. Looking forward to your help.
/Deniz Dogan