github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/client/driver/test-resources/java/Hello.java (about) 1 public class Hello { 2 public static void main(String[] args) { 3 System.out.println("Hello"); 4 int seconds = 5; 5 if (args.length != 0) { 6 seconds = Integer.parseInt(args[0]); 7 } 8 try { 9 Thread.sleep(1000*seconds); //1000 milliseconds is one second. 10 } catch(InterruptedException ex) { 11 Thread.currentThread().interrupt(); 12 } 13 } 14 }