What does this mean? J2ME - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

What does this mean? J2ME

Hi there i am new to this and have a piece of code on a stopwatch and there's this part which i don't understand:
[code]
public void paint(Graphics g)
{
if(!reset)
{
g.setColor(0xffffff);
g.fillRect(0, 0, width, height);
g.setColor(0);
g.setFont(defaultFont);
long temp = currentTime - startTime;
hh = temp / 0x36ee80L;
mm = (temp - hh * 3600L * 1000L) / 60000L;
ss = (temp - hh * 3600L * 1000L - mm * 60L * 1000L) / 1000L;
ii = (temp % 1000L) / 10L;
if(hh < 10L)
hhStr = "0" + hh;
else
hhStr = String.valueOf(hh);
if(mm < 10L)
mmStr = "0" + mm;
else
mmStr = String.valueOf(mm);
if(ss < 10L)
ssStr = "0" + ss;
else
ssStr = String.valueOf(ss);
if(ii < 10L)
iiStr = "0" + ii;
else
iiStr = String.valueOf(ii);
str = hhStr + ":" + mmStr + ":" + ssStr + ":" + iiStr;
g.drawString(str, xStr, yStr, 65);
} else
{
reset = false;
g.setColor(0xffffff);
g.fillRect(0, 0, width, height);
g.setColor(0);
g.setFont(defaultFont);
g.drawString("00:00:00:00", xStr, yStr, 65);
}
}
[/code]

what does this part mean?
[code] hh = temp / 0x36ee80L;
mm = (temp - hh * 3600L * 1000L) / 60000L;
ss = (temp - hh * 3600L * 1000L - mm * 60L * 1000L) / 1000L;
ii = (temp % 1000L) / 10L;[/code]
-0x36ee80L;
-3600L
-1000L
-60L
-10L

please help
Sign In or Register to comment.