open-nomad/drivers/java/test-resources/Hello.java

15 lines
417 B
Java
Raw Normal View History

2018-10-31 16:19:07 +00:00
public class Hello {
public static void main(String[] args) {
System.out.println("Hello");
int seconds = 5;
if (args.length != 0) {
seconds = Integer.parseInt(args[0]);
}
try {
Thread.sleep(1000*seconds); //1000 milliseconds is one second.
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
}