point.java~1~

来自「j2me源代码」· JAVA~1~ 代码 · 共 40 行

JAVA~1~
40
字号
package wzq;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class Point {
    private int x;
    private int y;

    public Point(int x,int y) {
        this.x=x;
        this.y=y;
    }

    public int getX(){
        return this.x;
    }

    public int getY(){
        return this.y;
    }

    public Point getPoint(){
        return this;
    }

    public String toString(){
        return "("+this.x+","+this.y+")";
    }
}

⌨️ 快捷键说明

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