📄 controller.java
字号:
public class Controller {
private boolean inUse = false;
public synchronized void askFor() {
while (inUse)
try {
wait();
} catch (InterruptedException e) {
System.out.println("Exception");
}
inUse=true;
}
public synchronized void relinquish() {
inUse=false;
notify();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -