public class Infinite { public static void main(String[] args) { for (;;) { System.out.println("It was a dark and stormy night."); System.out.println("Some Indians were sitting around a campfire."); System.out.println("Then their chief rose and said:"); System.out.println(); //Skip a line. sleep(2000); //two-second pause } } //The following eight lines are needed to get the above sleep to work. static void sleep(long milliseconds) { try { Thread.sleep(milliseconds); } catch (InterruptedException e) { System.err.println(e.getMessage()); } } }