Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
LunarLanding.java
import java.util.*; public class Elapsed1 { public void calcHMS(int timeInSeconds) { int hours, minutes, seconds; hours = timeInSeconds / 3600; timeInSeconds = timeInSeconds - (hours * 3600); minutes = timeInSeconds / 60; timeInSeconds = timeInSeconds - (minutes * 60); seconds = timeInSeconds; System.out.println(hours + " hour(s) " + minutes + " minute(s) " + seconds + " second(s)"); } public static void main(String[] args) { Elapsed1 elap = new Elapsed1(); elap.calcHMS(10000); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
multiplo de 4 y 6
[JAVA] Cool thing about iterating a map with iterator.
ekse
Bound Types
Switch case example
Crescente.java
Neeraj
binary square root
jb12.0 threads.enums
1
Please log in to post a comment.