github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/client/driver/test-resources/java/demoapp.java (about) 1 public class Hello { 2 public static void main(String[] args) { 3 while (true) { 4 System.out.println("Hi"); 5 try { 6 Thread.sleep(1000); //1000 milliseconds is one second. 7 } catch(InterruptedException ex) { 8 Thread.currentThread().interrupt(); 9 } 10 } 11 } 12 }