cubbyhole.java

来自「Java样例程序集合:2D」· Java 代码 · 共 19 行

JAVA
19
字号
class CubbyHole {  private int contents;  private int available = 0;//  public synchronized native int get();   public native int get();  public synchronized native void put(int value);   static {   	try {	   System.loadLibrary("threadsync");	} catch (UnsatisfiedLinkError e) {	   System.err.println("Can't find library for thread sync");	   System.exit(-1);	}  }} 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?