New course! Every coder should learn Generative AI!
Try a free lesson0
How do you convert a number, say 320(seconds), into hours/minutes/seconds format in Java?
2 Answers
+ 2
Divide that number by 60, i.e 330/60 mins and 330/(60*60) hours
+ 1
No problem I got it, I think I'll use the modulus operator