package com.company;
public class Main {
public static void main(String[] args) {
int count = 0;
do {
count = count + 1;
if (count == 500000000) {
break;
}
System.out.print(count);
System.out.print("\n");
try {
Thread.sleep(1000);
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
}while(true);
}
}
只希望它从 jar 文件在控制台中运行,而不是在后台运行
眼眸繁星
相关分类