longValue() is an instance method of class Long. S.pop() will return the Long you pushed onto the stack, but the reference will be of type Object. You must cast the Object reference to a Long reference and then use longValue().Originally posted by Mitch Krah:
Long.longValue(S.pop());
Originally posted by Mitch Krah:
Wow! That was not inherently obvious. I tried your suggestion and it worked great.
However, now I keep getting times of 0. I will have to do some debugging and check the values. But, thank you very much for your help.
Mitch
Since getTime() returns a number in milliseconds, simply divide by 1000 to convert it to seconds.Originally posted by Mitch Krah:
I need to figure out how to convert the time I am getting into seconds and things should be better.
Don't get me started about those stupid light bulbs. |