coord.java
来自「This the OXO example code plus the prese」· Java 代码 · 共 53 行
JAVA
53 行
/** * A simple class designed to hold a (rwo,column) pair. * * @author Ian Bradley * @version 1.0 March 2008 */public class Coord{ // instance variables - replace the example below with your own private int row; private int column; /** * Constructor for objects of class Coord */ public Coord(int row, int column) { this.row = row; this.column = column; } /** * returns a coord object * * @return the coord object */ public Coord getCoord() { return this; } /** * returns the row value. * * @return row value */ public int getRow() { return row; } /** * returns the column value. * * @return column value */ public int getColumn() { return column; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?