mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 18:24:27 +08:00
16 lines
449 B
Java
16 lines
449 B
Java
public class HelloWorld {
|
|
public static void main(String[] args) {
|
|
// loop and sleep for 1 second
|
|
while (true) {
|
|
System.out.println("Hello World!");
|
|
// create an object and let it go out of scope
|
|
Object obj = new Object();
|
|
try {
|
|
Thread.sleep(1000);
|
|
} catch (InterruptedException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|