military time in java

M

mrshinton01

Hi all,

I am new programmer, and need to use the military time to calculate
the duration of a phone call.

I wanted to use the increment and add 1 to make the hour change. I
have to input the time but I am not sure how to do it. Do I need to
declare the hours if greater than 59 then add 1 and reset the count

If anyone can direct me to the proper way, I would appreciate it

thanks,
Luvie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top