testintcell.java

来自「Data StructuresAnd Algorithm Analysis In」· Java 代码 · 共 15 行

JAVA
15
字号

    // Exercise the IntCell class
    public class TestIntCell
    {
        public static void main( String [ ] args )
        {
            IntCell m = new IntCell( );

            m.write( 5 );
            System.out.println( "Cell contents: " + m.read( ) );
            // The next line would be illegal if uncommented
        //  m.storedValue = 0;
        }
    }

⌨️ 快捷键说明

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