Results 1 to 1 of 1
-
How to beep every 5 minutes in Java
Java Code: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); } } }"The sole cause of man’s unhappiness is that he does not know how to stay quietly in his room." - Blaise Pascal


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks