cubbyhole.java
来自「this is test program which tries to solv」· Java 代码 · 共 38 行
JAVA
38 行
/* * 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 + =
减小字号Ctrl + -
显示快捷键?