-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab03.java
More file actions
25 lines (21 loc) · 730 Bytes
/
Lab03.java
File metadata and controls
25 lines (21 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public class Lab03 {
/*********************************
Lab03: The Time Display Program
Name: Amir Mousavi
Submitted: June 10, 2013
Teacher: Christopher Slowley
*******************************/
public static void main(String[] args) {
int miliSecond = 10000123;
System.out.print("10000123 miliseconds equals: ");
System.out.println();
System.out.println();
System.out.print(miliSecond/3600000 + " hours");
miliSecond = miliSecond % 360000;
System.out.print(", " + miliSecond / 6000 + " minutes");
miliSecond = miliSecond % 60000;
System.out.print(", " + miliSecond /1000 + " seconds");
miliSecond = miliSecond % 10000;
System.out.print(", and " + miliSecond + " milisecond");
}
}