b0aafbdc4c66001b1fe3ad9a55af56f7

来自「在eclipse下开发的求平面上两点之间的最短距离。通过随机在平面上生成无数个点」· 代码 · 共 28 行

TXT
28
字号
package distance;
/*describe the information of coordinate*/
public class Point {
	private double XCoordinate;//x coordinate
	private double YCoordinate;//y coordinate
	
	public Point(){
			
	}
	/*set the value of x coordinate*/	
	public void setXCoordinate(double XCoordinate){
		this.XCoordinate = XCoordinate;
	}
	/*set the value of y coordinate*/
	public void setXCoordinate(double YCoordinate){
		this.YCoordinate = YCoordinate;
	}
	/*get the value of x coordinate*/
	public double getXCoordinate(){
		return this.XCoordinate;
	}
	/*get the value of y coordinate*/
	public double getXCoordinate(){
		return this.YCoordinate;
	}

}

⌨️ 快捷键说明

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