16 lines
323 B
Java
16 lines
323 B
Java
public class Hello {
|
|
public static void main(String[] args) {
|
|
System.out.println("Hello from Java Inside Docker!");
|
|
|
|
while (true) {
|
|
System.out.println("App is running...");
|
|
try {
|
|
Thread.sleep(5000);
|
|
} catch (InterruptedException e) {
|
|
System.out.println("Loop interrupted");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|