open-nomad/client/driver/test-resources/java/demoapp.java

12 lines
268 B
Java

public class Hello {
public static void main(String[] args) {
while (true) {
System.out.println("Hi");
try {
Thread.sleep(1000); //1000 milliseconds is one second.
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
}
}