// a simple HelloWorld loop public class MyHello { public static void main(String[] args) throws InterruptedException { for (int k=1; k <= 5; k++) { System.out.println("Hello #" + k); Thread.sleep (1000 /* millisec */); } } }