📄 cubbyhole.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//** * * @author bits07a004 */public class CubbyHole extends Thread{ private int buffer; private boolean haveValue; public CubbyHole() { haveValue = false; } public void takeValue( int value ) { buffer = value; haveValue = true; } public int returnValue() { haveValue = false; return buffer; } public boolean isEmpty() { return haveValue == false; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -