github.com/maier/nomad@v0.4.1-0.20161110003312-a9e3d0b8549d/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  }