mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
20 lines
628 B
Java
20 lines
628 B
Java
public class loop {
|
|
public static void main(String[] args) throws Exception {
|
|
try {
|
|
while (true) {
|
|
try{
|
|
Class clz = Class.forName("cn.xiaozhou233.Test");
|
|
//invoke printTest()
|
|
clz.getMethod("printTest").invoke(null);
|
|
} catch (ClassNotFoundException e) {
|
|
System.out.println("Class not found");
|
|
}
|
|
System.out.println("Hello World");
|
|
Thread.sleep(2000);
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
throw new RuntimeException(e);
|
|
}
|
|
}
|
|
} |