|
How to beep every 5 minutes in Java
import java.util.Date;
/**
* Beep every 5 minutes.
*
* @author Ian F. Darwin, http://www.darwinsys.com/
* @version $Id: Reminder.java,v 1.3 2004/02/09 03:33:46 ian Exp $
*/
public class Reminder {
public static void main(String[] argv) throws InterruptedException {
//+
while (true) {
System.out.println(new Date() + "\007");
Thread.sleep(5 * 60 * 1000);
}
}
}
__________________
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. to our beloved Java Forums! (closes on July 27, 2008)
|