- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlarmClock.java
More file actions
Latest commit
26 lines (21 loc) · 594 Bytes
/
Copy pathAlarmClock.java
File metadata and controls
26 lines (21 loc) · 594 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
26
/*
* PROJECT: Alarm Clock
* DESCRIPTION: A simple clock where it plays a sound after X number of minutes/seconds
* or at a particular time.
* COMPLETED:
*/
packageNumbers;
importjava.util.Scanner;
importjava.applet.*;
importjava.net.*;
publicclassAlarmClock {
publicstaticvoidmain(String[] args) {
try{
AudioClipalarmClock= Applet.newAudioClip(newURL("file://d:/Large file storage/Programming/Java/Eclipse/Workspace/Mega Project List/data/alarmClock.wav"));
alarmClock.play();
}
catch (MalformedURLExceptionmurle){
System.out.println(murle);
}
}
}