man.java

来自「所学课程的编码。java的基础例子。可以练习java通过这些例子。。」· Java 代码 · 共 25 行

JAVA
25
字号
/*
 * Created on 2005-10-8
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package chap05;

/**
 * @author Administrator
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class Man {
    int speed = 10;

    public int getSpeed() {
        return speed;
    }

    public int getSqrtSpeed() {
        return (int) Math.sqrt((double) speed);
    }
}

⌨️ 快捷键说明

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