📄 infiniteloopthread.java
字号:
public class InfiniteLoopThread extends Thread{ // Default Constructor public InfiniteLoopThread() { super(); } // Override the parents run method public void run() { // variable for exit condition - default to false boolean timeToExit = false; // Keep the thread going until time to exit is true while( !timeToExit ) { // Do some work here that might cause the exit // condition to change } // Thread is exiting. Clean up any open resources }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -