github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/drivers/java/test-resources/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  }