⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calcengine.java

📁 现在在国外大学里最流行的java学习软件,同时还有大量的example,在名为project的文件里.安装好后用bluej打开peoject的例子,可以进行你想要的任何变化.同时可以了解大量的源码
💻 JAVA
字号:
/** * The main part of the calculator doing the calculations. *  * @author  David J. Barnes and Michael Kolling * @version 0.1 (incomplete) */public class CalcEngine{    // Put instance variables here.    /**     * Create a CalcEngine.     */    public CalcEngine()    {    }    /**     * @return The value that should currently be displayed     * on the calculator display.     */    public int getDisplayValue()    {        return 0;    }    /**     * A number button was pressed.     * Either start a new operand, or incorporate this number as     * the least significant digit of an existing one.     * @param number The number pressed on the calculator.     */    public void numberPressed(int number)    {    }    /**     * The 'plus' button was pressed.      */    public void plus()    {    }    /**     * The 'minus' button was pressed.     */    public void minus()    {    }    /**     * The '=' button was pressed.     */    public void equals()    {    }    /**     * The 'C' (clear) button was pressed.     */    public void clear()    {    }    /**     * @return The title of this calculation engine.     */    public String getTitle()    {        return "";    }    /**     * @return The author of this engine. This string is displayed as it is,     * so it should say something like "Written by H. Simpson".     */    public String getAuthor()    {        return "";    }    /**     * @return The version number of this engine. This string is displayed as      * it is, so it should say something like "Version 1.1".     */    public String getVersion()    {        return "";    }}

⌨️ 快捷键说明

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