ladder.java
来自「Java based Snakes and Ladders game.」· Java 代码 · 共 34 行
JAVA
34 行
/** * Write a description of class Ladder here. * * @author (your name) * @version (a version number or a date) */public class Ladder{ // instance variables - replace the example below with your own private int x; /** * Constructor for objects of class Ladder */ public Ladder() { // initialise instance variables x = 0; } /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public int sampleMethod(int y) { // put your code here return x + y; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?